ANSHUMAN87 commented on a change in pull request #7635:
URL: https://github.com/apache/tvm/pull/7635#discussion_r594083890
##########
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:
Okay, thanks for clarification. But i just wonder if `name` is not
available than, how the logic above prefix is working (i mean the line number
98). Its in the same flow right ? Please let me know in case i am mistaken.
----------------------------------------------------------------
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]