projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
406b5f7
)
[RELAY][FRONTEND][TF] Fix FuseBatchNorm output cast error if need_cast is True (...
author
hcyang
<yhcvb@126.com>
Wed, 19 Feb 2020 06:33:16 +0000
(14:33 +0800)
committer
GitHub
<noreply@github.com>
Wed, 19 Feb 2020 06:33:15 +0000
(22:33 -0800)
python/tvm/relay/frontend/tensorflow.py
patch
|
blob
|
history
diff --git
a/python/tvm/relay/frontend/tensorflow.py
b/python/tvm/relay/frontend/tensorflow.py
index
f920682
..
587b076
100644
(file)
--- a/
python/tvm/relay/frontend/tensorflow.py
+++ b/
python/tvm/relay/frontend/tensorflow.py
@@
-897,6
+897,7
@@
def _fused_batch_norm():
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