Skip to content

Commit

Permalink
[RELAY][FRONTEND][TF] Fix FuseBatchNorm output cast error if need_cas…
Browse files Browse the repository at this point in the history
…t is True
  • Loading branch information
yanghuacong committed Feb 19, 2020
1 parent a6c42b3 commit 79204cb
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 79204cb

Please sign in to comment.