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

Method device

pixal3d/models/sparse_structure_vae.py:162–166  ·  view source on GitHub ↗

Return the device of the model.

(self)

Source from the content-addressed store, hash-verified

160
161 @property
162 def device(self) -> torch.device:
163 """
164 Return the device of the model.
165 """
166 return next(self.parameters()).device
167
168 def convert_to_fp16(self) -> None:
169 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected