Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Dec 6, 2023
1 parent b4daecf commit 5670fb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(self,
nn.Dropout2d(dropout_rate),
nn.Conv2d(out_chans, out_chans, kernel_size=3, padding=1, bias=False),
norm_layer,
nn.LeakyReLU(negative_slope=0.2, inplace=True),
activation_fn,
nn.Dropout2d(dropout_rate),
)

Expand All @@ -156,7 +156,6 @@ def __init__(self,
norm_layer = nn.InstanceNorm2d(out_chans)
if use_tanh:
activation_fn = nn.Tanh(inplace=True)
activation_fn = nn.LeakyReLU(negative_slope=0.2, inplace=True)
else:
activation_fn = nn.LeakyReLU(negative_slope=0.2, inplace=True)
self.layers = nn.Sequential(
Expand Down
2 changes: 2 additions & 0 deletions algorithmic_efficiency/workloads/fastmri/workload.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ class BaseFastMRIWorkload(spec.Workload):
def target_metric_name(self) -> str:
"""The name of the target metric (useful for scoring/processing code)."""
return 'ssim'

@property
def use_layer_norm(self) -> bool:
"""Whether or not to use LayerNorm in the model."""
return False
Expand Down

0 comments on commit 5670fb4

Please sign in to comment.