CircleSpin commented on code in PR #11047: URL: https://github.com/apache/tvm/pull/11047#discussion_r852454098
########## include/tvm/topi/transform.h: ########## @@ -321,6 +321,11 @@ inline Tensor reshape(const Tensor& x, Array<PrimExpr> newshape, std::string nam auto x_shape = x->shape; Array<PrimExpr> target_shape; + // if newshape is an empty tensor make it [0] instead. + if (newshape.empty()) { + newshape.push_back(0); + } Review Comment: :+1: -- 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: commits-unsubscr...@tvm.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org