From 771c5b531f66c250fd154c0b9d863b8f24b24283 Mon Sep 17 00:00:00 2001 From: Yizhi Liu Date: Sun, 28 Oct 2018 09:31:14 -0700 Subject: [PATCH] [TF] ignore Truncate in cast (#2022) --- nnvm/python/nnvm/frontend/tensorflow.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nnvm/python/nnvm/frontend/tensorflow.py b/nnvm/python/nnvm/frontend/tensorflow.py index 28877ef19e0e6..da6fcc94bf6fc 100644 --- a/nnvm/python/nnvm/frontend/tensorflow.py +++ b/nnvm/python/nnvm/frontend/tensorflow.py @@ -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():