Skip to content

Commit

Permalink
raise right error in tensorflow split op (apache#5951)
Browse files Browse the repository at this point in the history
  • Loading branch information
Meteorix authored and zhiics committed Jul 2, 2020
1 parent 34ce297 commit 28fa03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/tensorflow.py
Expand Up @@ -1742,7 +1742,7 @@ def _impl(inputs, attr, params, mod):
indices_or_sections = attr['num_split']
input_node = inputs[input_node_index]
axis_input_value = _get_num_param(params, inputs[input_axis_index])
except (IndexError, KeyError):
except (IndexError, KeyError, AttributeError):
raise TypeError(
"Unsupported argument for split: `axis` and `num_or_size_splits` "
"should be constants")
Expand Down

0 comments on commit 28fa03d

Please sign in to comment.