MCPcopy
hub / github.com/Wan-Video/Wan2.2 / to

Method to

wan/modules/animate/animate_utils.py:36–37  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

34 self.tensors = tensors
35
36 def to(self, *args, **kwargs):
37 return TensorList([u.to(*args, **kwargs) for u in self.tensors])
38
39 def size(self, dim):
40 assert dim == 0, 'only support get the 0th size'

Callers 15

_configure_modelMethod · 0.80
encode_audioMethod · 0.80
load_pose_condMethod · 0.80
generateMethod · 0.80
_configure_modelMethod · 0.80
generateMethod · 0.80
_configure_modelMethod · 0.80
generateMethod · 0.80
_configure_modelMethod · 0.80
t2vMethod · 0.80

Calls 1

TensorListClass · 0.85

Tested by

no test coverage detected