Skip to content

Commit

Permalink
Update pytorch_builder.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbar05 authored Apr 8, 2023
1 parent 45243d5 commit 1d05e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiddenlayer/pytorch_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def import_graph(hl_graph, model, args, input_names=None, verbose=False):

# Run the Pytorch graph to get a trace and generate a graph from it
trace, out = torch.jit._get_trace_graph(model, args)
torch_graph = torch.onnx._optimize_trace(trace, torch.onnx.OperatorExportTypes.ONNX)
torch_graph = torch.onnx._optimize_graph(trace, torch.onnx.OperatorExportTypes.ONNX)

# Dump list of nodes (DEBUG only)
if verbose:
Expand Down

0 comments on commit 1d05e8e

Please sign in to comment.