Skip to content

Commit

Permalink
fixed tuple error (#10216)
Browse files Browse the repository at this point in the history
Co-authored-by: suhail <suhail@expedera.com>
  • Loading branch information
alnah005 and suhail authored May 27, 2022
1 parent 7766ab2 commit bc492ac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/tvm/relay/frontend/tflite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,9 +1995,8 @@ def convert_fully_connected(self, op):
# Change the output shape calculation based on keep_dim option
if keep_num_dims:
input_shape = _infer_shape(self.get_tensor_expr(input_tensor))
output_shape = list(input_shape)
output_shape[-1] = weight_tensor_shape[0]
out = _op.reshape(out, tuple(output_shape))
output_shape = input_shape[:-1] + tuple([weight_tensor_shape[0]])
out = _op.reshape(out, output_shape)

return out

Expand Down

0 comments on commit bc492ac

Please sign in to comment.