electriclilies commented on a change in pull request #6851: URL: https://github.com/apache/incubator-tvm/pull/6851#discussion_r518231059
########## File path: src/relay/op/tensor/transform.cc ########## @@ -641,11 +642,45 @@ bool ReshapeRel(const Array<Type>& types, int num_inputs, const Attrs& attrs, return true; } +Array<PrimExpr> infer_reshape_like(const Array<PrimExpr>& lhs_shape, + const Array<PrimExpr>& rhs_shape, const Attrs& attrs) { + const auto* like_attrs = attrs.as<ReshapeLikeAttrs>(); + CHECK(!like_attrs->lhs_end.defined() || like_attrs->lhs_end.as<IntImmNode>()) Review comment: Can you add some line breaks in this function? It is a bit difficult to read. ---------------------------------------------------------------- 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