MCPcopy
hub / github.com/Comfy-Org/ComfyUI / to

Method to

comfy/nested_tensor.py:42–46  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

40 return self.tensors
41
42 def to(self, *args, **kwargs):
43 o = self._copy()
44 for i, t in enumerate(o.tensors):
45 o.tensors[i] = t.to(*args, **kwargs)
46 return o
47
48 def new_ones(self, *args, **kwargs):
49 return self.tensors[0].new_ones(*args, **kwargs)

Callers 15

floatMethod · 0.95
preview_to_imageFunction · 0.45
get_previewerFunction · 0.45
apply_stylemodelMethod · 0.45
load_imageMethod · 0.45
stochastic_roundingFunction · 0.45
__init__Method · 0.45
_apply_modelMethod · 0.45

Calls 1

_copyMethod · 0.95