Skip to content

Commit

Permalink
• pytorchwrappers.py
Browse files Browse the repository at this point in the history
  - __init__(): modify check for BIAS Nodes
  • Loading branch information
jdcpni committed Jan 3, 2025
1 parent 44186d8 commit 25d119f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psyneulink/library/compositions/pytorchwrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __init__(self,
self._composition._get_node_index(node),
device,
context=context)
pytorch_node._is_bias = any(input_port.default_input == DEFAULT_VARIABLE
pytorch_node._is_bias = all(input_port.default_input == DEFAULT_VARIABLE
for input_port in node.input_ports)
self.nodes_map[node] = pytorch_node
self.wrapped_nodes.append(pytorch_node)
Expand Down

0 comments on commit 25d119f

Please sign in to comment.