Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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