Skip to content

Commit

Permalink
Fix use-before-assignment in convert_dot (apache#13511)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhipeng-jia authored and zhaoyao73 committed Dec 9, 2018
1 parent b7f85ce commit 8057323
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,8 @@ def convert_dot(node, **kwargs):
MatMul and Transpose operators based on the values set for
transpose_a, transpose_b attributes."""
name, input_nodes, attrs = get_inputs(node, kwargs)
input_node_a = input_nodes[0]
input_node_b = input_nodes[1]

trans_a_node = None
trans_b_node = None
Expand Down

0 comments on commit 8057323

Please sign in to comment.