Skip to content

Commit

Permalink
Merge pull request #211 from HazyResearch/fix_200
Browse files Browse the repository at this point in the history
Update where output_dim is defined
  • Loading branch information
bhancock8 authored Sep 4, 2019
2 parents 8093115 + 0d995b0 commit b54631e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metal/multitask/mt_end_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ def _build(self, input_modules, middle_modules, head_modules):

def _build_input_layer(self, input_modules):
if input_modules is None:
output_dim = self.config["layer_out_dims"][0]
input_modules = IdentityModule()

if isinstance(input_modules, list):
Expand All @@ -107,6 +106,7 @@ def _build_input_layer(self, input_modules):
for mod in input_modules
]
else:
output_dim = self.config["layer_out_dims"][0]
input_layer = self._make_layer(
input_modules,
"input",
Expand Down

0 comments on commit b54631e

Please sign in to comment.