ekalda commented on code in PR #16612:
URL: https://github.com/apache/tvm/pull/16612#discussion_r1499519760
##########
include/tvm/runtime/data_type.h:
##########
@@ -110,7 +111,7 @@ class DataType {
return -lanes_as_int;
}
/*! \return whether type is a scalar type. */
- bool is_scalar() const { return lanes() == 1; }
+ bool is_scalar() const { return !is_scalable_vector() && lanes() == 1; }
Review Comment:
I think it would make more sense to use
`!is_scalable_or_fixed_length_vector()` here. The current version is going to
throw an error if applied on a scalable vector.
--
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]