MCPcopy Create free account
hub / github.com/TencentARC/Pixal3D / device

Method device

pixal3d/models/sparse_structure_vae.py:271–275  ·  view source on GitHub ↗

Return the device of the model.

(self)

Source from the content-addressed store, hash-verified

269
270 @property
271 def device(self) -> torch.device:
272 """
273 Return the device of the model.
274 """
275 return next(self.parameters()).device
276
277 def convert_to_fp16(self) -> None:
278 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected