Skip to content

Commit

Permalink
error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurawly committed Mar 12, 2019
1 parent 567f9f1 commit e2dbbf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/mxnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ def _mx_roi_align(inputs, attrs):
def _mx_upsampling(inputs, attrs):
scale_height = attrs.get_float("scale_height", None)
scale_width = attrs.get_float("scale_width", None)
if scale_height == None:
if scale_height is None:
height = attrs.get_int("height", 1)
scale_height = float(height) // inputs[0].shape[2]
if scale_width == None:
if scale_width is None:
width = attrs.get_int("width", 1)
scale_width = float(width) // inputs[0].shape[3]
assert scale_height == scale_width
Expand Down

0 comments on commit e2dbbf2

Please sign in to comment.