ZihengJiang commented on a change in pull request #8200:
URL: https://github.com/apache/tvm/pull/8200#discussion_r647964668



##########
File path: src/relay/transforms/pattern_utils.h
##########
@@ -441,7 +441,7 @@ static inline long double ToScalar(const runtime::NDArray& 
array, size_t i = 0)
 static inline Array<Integer> ToVector(const runtime::NDArray& array) {
   size_t ndim = array.Shape().size();
   ICHECK_EQ(ndim, 1) << "This function should only be used for 1D NDArrays";
-  size_t len = array.Shape().front();
+  size_t len = array.Shape().at(0);

Review comment:
       not sure whether we need those for a tuple object




-- 
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to