jcf94 commented on a change in pull request #7635:
URL: https://github.com/apache/tvm/pull/7635#discussion_r594004853



##########
File path: python/tvm/relay/analysis/sparse_dense.py
##########
@@ -92,6 +98,23 @@ def process_params(expr, params, block_size, 
sparsity_threshold):
             params[name + ".data"] = tvm.nd.array(sparse_weight.data)
             params[name + ".indices"] = tvm.nd.array(sparse_weight.indices)
             params[name + ".indptr"] = tvm.nd.array(sparse_weight.indptr)
+
+            prefix = "sparse_dense_bsr_%d_%d_%d_%d_%.2f_" % (
+                w_np.shape[0],
+                w_np.shape[1],
+                block_size[0],
+                block_size[1],
+                1 - sparsity,
+            )
+            register_task_input_buffer(
+                "default", prefix + "W_data", 
tvm.runtime.ndarray.array(sparse_weight.data)

Review comment:
       The problem is that we cannot get the "name" during measuring.




----------------------------------------------------------------
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]


Reply via email to