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 AWS Neo committed Feb 20, 2019
1 parent 28af8b4 commit 89516f5
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 89516f5

Please sign in to comment.