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

Method device

pixal3d/models/sparse_structure_flow.py:159–163  ·  view source on GitHub ↗

Return the device of the model.

(self)

Source from the content-addressed store, hash-verified

157
158 @property
159 def device(self) -> torch.device:
160 """
161 Return the device of the model.
162 """
163 return next(self.parameters()).device
164
165 def convert_to(self, dtype: torch.dtype) -> None:
166 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected