MCPcopy
hub / github.com/Robbyant/lingbot-world / 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
generateMethod · 0.80
__init__Method · 0.80
_configure_modelMethod · 0.80
generateMethod · 0.80
forwardMethod · 0.80
_t5Function · 0.80
__init__Method · 0.80
__call__Method · 0.80
forwardMethod · 0.80

Calls 1

TensorListClass · 0.85

Tested by

no test coverage detected