MCPcopy Index your code
hub / github.com/modelscope/DiffSynth-Studio / to

Method to

diffsynth/utils/__init__.py:34–41  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

32
33
34 def to(self, *args, **kwargs):
35 device, dtype, non_blocking, convert_to_format = torch._C._nn._parse_to(*args, **kwargs)
36 if device is not None:
37 self.device = device
38 if dtype is not None:
39 self.torch_dtype = dtype
40 super().to(*args, **kwargs)
41 return self
42
43
44 def check_resize_height_width(self, height, width, num_frames=None):

Callers 15

preprocess_imageMethod · 0.45
vae_output_to_imageMethod · 0.45
load_models_to_deviceMethod · 0.45
generate_noiseMethod · 0.45
offloadMethod · 0.45
onloadMethod · 0.45
keepMethod · 0.45
__init__Method · 0.45
forwardMethod · 0.45
fp8_linearMethod · 0.45
loadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected