MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / dtype

Method dtype

src/diffusers/models/modeling_utils.py:885–889  ·  view source on GitHub ↗

`torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).

(self)

Source from the content-addressed store, hash-verified

883
884 @property
885 def dtype(self) -> torch.dtype:
886 """
887 `torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
888 """
889 return get_parameter_dtype(self)
890
891 def num_parameters(self, only_trainable: bool = False, exclude_embeddings: bool = False) -> int:
892 """

Callers

nothing calls this directly

Calls 1

get_parameter_dtypeFunction · 0.85

Tested by

no test coverage detected