masahi commented on a change in pull request #9795:
URL: https://github.com/apache/tvm/pull/9795#discussion_r774145206
##########
File path: src/relay/op/dyn/tensor/transform.cc
##########
@@ -467,6 +467,9 @@ bool StridedSliceRel(const Array<Type>& types, int
num_inputs, const Attrs& attr
int64_t num_axis = dshape.size();
const auto* begin = types[1].as<TensorTypeNode>();
+ if (begin == nullptr) {
+ return false;
+ }
Review comment:
This and the change below in `src/relay/op/tensor/transform.cc` are the
fix for the type inference issue mentioned in "Known issues" section of
https://github.com/apache/tvm/pull/9746
No test is added because it is hard to reproduce on a simple test case and
the change is trivial.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]