MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / device

Method device

examples/pytorch/gpt/utils/gpt_decoder.py:357–359  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

355
356 @property
357 def device(self):
358 assert self.weight is not None
359 return self.weight.device
360
361 def cuda(self, device=None):
362 assert torch.cuda.is_available()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected