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 25d119f commit 3de2565
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions psyneulink/library/compositions/pytorchwrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,10 @@ def __init__(self,
self._composition._get_node_index(node),
device,
context=context)
pytorch_node._is_bias = all(input_port.default_input == DEFAULT_VARIABLE
for input_port in node.input_ports)
# pytorch_node._is_bias = all(input_port.default_input == DEFAULT_VARIABLE
# for input_port in node.input_ports)
pytorch_node._is_bias = node in self._composition.get_nodes_by_role(NodeRole.BIAS)

self.nodes_map[node] = pytorch_node
self.wrapped_nodes.append(pytorch_node)

Expand Down

0 comments on commit 3de2565

Please sign in to comment.