altanh commented on a change in pull request #6851:
URL: https://github.com/apache/incubator-tvm/pull/6851#discussion_r518445194
##########
File path: python/tvm/relay/op/transform.py
##########
@@ -308,28 +308,45 @@ def scatter_add(data, indices, updates, axis):
return _make.scatter_add(data, indices, updates, axis)
-def reshape_like(data, shape_like):
- """Reshapes the input array by the size of another array.
- For an input array with shape ``(d1, d2, ..., dk)``, `reshape_like`
operation reshapes
- the input array into an output array with the same shape as the second
input array.
+def reshape_like(data, shape_like, lhs_begin=0, lhs_end=None, rhs_begin=0,
rhs_end=None):
+ """Reshapes the input tensor by the size of another tensor.
Review comment:
added
----------------------------------------------------------------
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:
[email protected]