Skip to content

Commit

Permalink
Improve the if condition for empty tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
cchung100m committed Aug 9, 2019
1 parent 3776688 commit 889e99d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,8 @@ def convert_transpose(self, op):
# axis
in_axis = tuple(self.get_tensor_value(input_tensors[1]))

if in_axis is None:
out = _op.transpose(data=in_expr)
if not in_axis:
out = _op.transpose(in_expr)
else:
out = _op.transpose(in_expr, in_axis)

Expand Down

0 comments on commit 889e99d

Please sign in to comment.