Skip to content

Commit

Permalink
Fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
guaneec authored Oct 26, 2022
1 parent 91bb35b commit b6a8bb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/hypernetworks/hypernetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, dim, state_dict=None, layer_structure=None, activation_func=N
linears.append(torch.nn.LayerNorm(int(dim * layer_structure[i+1])))

# Add dropout except last layer
if use_dropout and i < len(layer_structure) - 2:
if use_dropout and i < len(layer_structure) - 3:
linears.append(torch.nn.Dropout(p=0.3))

self.linear = torch.nn.Sequential(*linears)
Expand Down Expand Up @@ -126,7 +126,7 @@ class Hypernetwork:
filename = None
name = None

def __init__(self, name=None, enable_sizes=None, layer_structure=None, activation_func=None, weight_init=None, add_layer_norm=False, use_dropout=False, activate_output=False)
def __init__(self, name=None, enable_sizes=None, layer_structure=None, activation_func=None, weight_init=None, add_layer_norm=False, use_dropout=False, activate_output=False):
self.filename = None
self.name = name
self.layers = {}
Expand Down

0 comments on commit b6a8bb1

Please sign in to comment.