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

Method size

wan/modules/animate/animate_utils.py:39–41  ·  view source on GitHub ↗
(self, dim)

Source from the content-addressed store, hash-verified

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'
41 return len(self.tensors)
42
43 def pow(self, *args, **kwargs):
44 return TensorList([u.pow(*args, **kwargs) for u in self.tensors])

Callers 15

t2vMethod · 0.80
i2vMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
init_weightMethod · 0.80
init_weight2Method · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected