Skip to content

Commit 0f6166b

Browse files
authored
Update maskedtensor_sparsity.py (#2712)
1 parent 33f2d89 commit 0f6166b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

prototype_source/maskedtensor_sparsity.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,27 +186,27 @@
186186
mt_dense = mt_sparse_coo.to_dense()
187187

188188
######################################################################
189-
# :meth:`MaskedTensor.is_sparse()` -- this will check if the :class:`MaskedTensor`'s layout
189+
# :meth:`MaskedTensor.is_sparse` -- this will check if the :class:`MaskedTensor`'s layout
190190
# matches any of the supported sparse layouts (currently COO and CSR).
191191
#
192192

193-
print("mt_dense.is_sparse: ", mt_dense.is_sparse())
194-
print("mt_sparse_coo.is_sparse: ", mt_sparse_coo.is_sparse())
195-
print("mt_sparse_csr.is_sparse: ", mt_sparse_csr.is_sparse())
193+
print("mt_dense.is_sparse: ", mt_dense.is_sparse)
194+
print("mt_sparse_coo.is_sparse: ", mt_sparse_coo.is_sparse)
195+
print("mt_sparse_csr.is_sparse: ", mt_sparse_csr.is_sparse)
196196

197197
######################################################################
198198
# :meth:`MaskedTensor.is_sparse_coo()`
199199
#
200200

201-
print("mt_dense.is_sparse_coo: ", mt_dense.is_sparse_coo())
201+
print("mt_dense.is_sparse_coo(): ", mt_dense.is_sparse_coo())
202202
print("mt_sparse_coo.is_sparse_coo: ", mt_sparse_coo.is_sparse_coo())
203203
print("mt_sparse_csr.is_sparse_coo: ", mt_sparse_csr.is_sparse_coo())
204204

205205
######################################################################
206206
# :meth:`MaskedTensor.is_sparse_csr()`
207207
#
208208

209-
print("mt_dense.is_sparse_csr: ", mt_dense.is_sparse_csr())
209+
print("mt_dense.is_sparse_csr(): ", mt_dense.is_sparse_csr())
210210
print("mt_sparse_coo.is_sparse_csr: ", mt_sparse_coo.is_sparse_csr())
211211
print("mt_sparse_csr.is_sparse_csr: ", mt_sparse_csr.is_sparse_csr())
212212

0 commit comments

Comments
 (0)