MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / to_coo_tensor

Method to_coo_tensor

deepspeed/runtime/sparse_tensor.py:34–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

32 self.dense_size = None
33
34 def to_coo_tensor(self):
35 return torch.sparse_coo_tensor(self.indices.unsqueeze(0), self.values, self.dense_size)
36
37 @staticmethod
38 def type():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected