Skip to content

Commit

Permalink
Undefined name: Typo in variable name sotrage_order --> storage_order (
Browse files Browse the repository at this point in the history
…apache#3439)

Discovered via: __flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics__
  • Loading branch information
cclauss authored and Wei Chen committed Jun 28, 2019
1 parent 3c92fbf commit 0aaa8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/python/nnvm/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def onnx_storage_order2layout(storage_order):
if storage_order not in (0, 1):
raise tvm.error.OpAttributeInvalid('Mode of storage_order must be either 0 or 1')

return 'NCHW' if sotrage_order == 0 else 'NHWC'
return 'NCHW' if storage_order == 0 else 'NHWC'


class OnnxOpConverter(object):
Expand Down

0 comments on commit 0aaa8a2

Please sign in to comment.