Skip to content

Commit

Permalink
use checked_type instead of type_annotation (apache#7522)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Brookhart authored and trevor-m committed Mar 2, 2021
1 parent 4317501 commit a8f8adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,7 @@ def _impl_v7(cls, inputs, attr, params):
P = inputs[7]

num_directions = infer_shape(W)[0]
W_dtype = infer_type(W).type_annotation.dtype
W_dtype = infer_type(W).checked_type.dtype

if num_directions != 1:
raise NotImplementedError("Bidirectional LSTMs not yet supported.")
Expand Down Expand Up @@ -1865,7 +1865,7 @@ def _impl_v7(cls, inputs, attr, params):
linear_before_reset = attr.get("linear_before_reset", 0)

num_directions = infer_shape(W)[0]
W_dtype = infer_type(W).type_annotation.dtype
W_dtype = infer_type(W).checked_type.dtype

if num_directions != 1:
raise NotImplementedError("Bidirectional GRUs not yet supported.")
Expand Down

0 comments on commit a8f8adc

Please sign in to comment.