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 (apache#4894)
  • Loading branch information
yhcvb authored and alexwong committed Feb 28, 2020
1 parent 0b6164d commit d3e7992
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 d3e7992

Please sign in to comment.