Skip to content

Commit

Permalink
[RELAY][FRONTEND][TENSORFLOW] Fix FuseBatchNorm output cast float16 e…
Browse files Browse the repository at this point in the history
…rror
  • Loading branch information
yanghuacong committed Feb 16, 2020
1 parent a6c42b3 commit 9d1bb50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tvm/relay/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ def _impl(inputs, attr, params):
disables=['momentum'])(inputs, attr)

if need_cast:
out = _expr.TupleGetItem(out.astuple(), 0)
out = _op.cast(out, dtype=attr['T'].name)
return out
return _impl
Expand Down

0 comments on commit 9d1bb50

Please sign in to comment.