check_sparse_tensor_invariants
- class torch.sparse.check_sparse_tensor_invariants(enable=True)
A tool to control checking sparse tensor invariants.
The following options exists to manage sparse tensor invariants checking in sparse tensor construction:
Using a context manager:
with