Skip to content

Commit ec63566

Browse files
committed
Note about performance
1 parent fd0ef9b commit ec63566

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/source/guide/guide_part_i.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ Example 2: Batch dimension specified via batch_size parameter (no batch axis in
193193
weights = Weight(name='weight_feature', value=torch.rand(100, 1000), sparse=True, batch_size=2)
194194
bias = Bias(name='bias_feature', value=torch.rand(100, 1000), sparse=True, batch_size=2)
195195
196+
197+
Note that subtraction and addition operations for sparse tensors are 90 times slower than those for dense tensors (tested on RTX 3060)
198+
196199
Specifying monitors
197200
*******************
198201

0 commit comments

Comments
 (0)