You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/05/03 04:04:03 UTC

[GitHub] [tvm] junrushao1994 commented on a change in pull request #7962: [TensorIR][Pass][M1c] FlattenBuffer

junrushao1994 commented on a change in pull request #7962:
URL: https://github.com/apache/tvm/pull/7962#discussion_r624864877



##########
File path: include/tvm/tir/transform.h
##########
@@ -406,6 +406,14 @@ TVM_DLL Pass ConvertBlocksToOpaque();
  */
 TVM_DLL Pass CompactBufferAllocation();
 
+/*!
+ * \brief Flatten the multi-dimensional BufferLoad and BufferStore
+ *        to single dimensional Load/Store. Also remove Block to
+ *        ensure that the flattened TIR can not be scheduled again.
+ * \return The pass.
+ */
+TVM_DLL Pass FlattenBuffer();

Review comment:
       I wonder which name works better, `BufferFlatten` or `FlattenBuffer`, given that we are using `StorageFlatten` and `StorageRewrite` as other pass names




-- 
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:
users@infra.apache.org