Skip to content

Commit

Permalink
[TF] ignore Truncate in cast (apache#2022)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu authored and Wei Chen committed Feb 19, 2019
1 parent b0a974b commit 771c5b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nnvm/python/nnvm/frontend/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ def _cast():
def _impl(inputs, attr, params):
# Convert from tensorflow Dtype to str
attr['DstT'] = attr['DstT'].name
return AttrCvt(op_name='cast', transforms={'DstT': 'dtype'}, ignores=['SrcT'])(inputs, attr)
return AttrCvt(op_name='cast', transforms={'DstT': 'dtype'},
ignores=['SrcT', 'Truncate'])(inputs, attr)
return _impl

def _expand_dims():
Expand Down

0 comments on commit 771c5b5

Please sign in to comment.