Skip to content

Commit

Permalink
Fix 1x1 dimension matrix simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasZahradnik committed Oct 29, 2023
1 parent fc3ffb6 commit b0ad5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neuralogic/core/constructs/java_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_value(self, weight):
value = self.vector_value(weight[0])
elif len(weight) == 2:
if weight[0] == 1:
value = self.vector_value(weight[1], True)
value = self.scalar_value() if weight[1] == 1 else self.vector_value(weight[1], True)
elif weight[1] == 1:
value = self.vector_value(weight[0], False)
else:
Expand Down

0 comments on commit b0ad5c4

Please sign in to comment.