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

Method device

diffusers/src/diffusers/models/modeling_utils.py:1006–1011  ·  view source on GitHub ↗

`torch.device`: The device on which the module is (assuming that all the module parameters are on the same device).

(self)

Source from the content-addressed store, hash-verified

1004
1005 @property
1006 def device(self) -> torch.device:
1007 """
1008 `torch.device`: The device on which the module is (assuming that all the module parameters are on the same
1009 device).
1010 """
1011 return get_parameter_device(self)
1012
1013 @property
1014 def dtype(self) -> torch.dtype:

Calls 1

get_parameter_deviceFunction · 0.85

Tested by 15

_is_torch_fp16_availableFunction · 0.36
_is_torch_fp64_availableFunction · 0.36
test_pipe_toMethod · 0.36
get_fixed_latentsMethod · 0.36
get_fixed_latentsMethod · 0.36
get_fixed_latentsMethod · 0.36
get_fixed_latentsMethod · 0.36
get_dummy_inputsMethod · 0.36