Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcpni committed Nov 22, 2024
1 parent c259b6d commit 55cef19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion psyneulink/library/compositions/pytorchshowgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ def __init__(self, *args, **kwargs):
@beartype
@handle_external_context(source=ContextFlags.COMPOSITION)
def show_graph(self, *args, **kwargs):
"""Override of show_graph to check if show_pytorch==True and if so build pytorch rep of autofiffcomposition"""
"""Override of show_graph to check for autodiff-specific options
If show_pytorch==True, build pytorch rep of autofiffcomposition
If show_learning==PNL, infer backpropagation learning pathways for Python version of graph
"""
if SHOW_LEARNING in kwargs and kwargs[SHOW_LEARNING] == PNL:
self.composition.infer_backpropagation_learning_pathways(ExecutionMode.Python)
kwargs[SHOW_LEARNING] = True
Expand Down

0 comments on commit 55cef19

Please sign in to comment.