guan404ming commented on code in PR #19871:
URL: https://github.com/apache/tvm/pull/19871#discussion_r3457562556
##########
python/tvm/tirx/transform/common.py:
##########
@@ -63,6 +62,10 @@ def mutate_buffer(self, buffer: Buffer):
self.buffer_attr_var_mutated = False
new_data = self.visit_expr(buffer.data)
new_shape = [self.visit_expr(expr) for expr in buffer.shape]
+ new_strides = [self.visit_expr(expr) for expr in buffer.strides]
Review Comment:
buffer.strides is an empty Array, not None, so iteration is safe (same as
buffer.shape above).
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]