MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / dtype

Method dtype

diffusers/src/diffusers/models/modeling_utils.py:1014–1018  ·  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

1012
1013 @property
1014 def dtype(self) -> torch.dtype:
1015 """
1016 `torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
1017 """
1018 return get_parameter_dtype(self)
1019
1020 def num_parameters(self, only_trainable: bool = False, exclude_embeddings: bool = False) -> int:
1021 """

Callers

nothing calls this directly

Calls 1

get_parameter_dtypeFunction · 0.85

Tested by

no test coverage detected