Skip to content

Commit

Permalink
Fix non-scalar value parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasZahradnik committed Apr 8, 2021
1 parent eacfd14 commit bd2bc74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified jar/NeuraLogic.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion neuralogic/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, neuron, index):
self.pooling = get_field(neuron, "pooling")

if self.value:
self.value = float(self.value)
self.value = json.loads(self.value)

if self.weights is not None:
self.weights = list(self.weights)
Expand Down

0 comments on commit bd2bc74

Please sign in to comment.