MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / LongTensor

Method LongTensor

accelerator/mlu_accelerator.py:223–224  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

221
222 @property
223 def LongTensor(self):
224 return functools.partial(torch.tensor, dtype=torch.long, device='mlu')
225
226 def on_accelerator(self, tensor):
227 device_str = str(tensor.device)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected