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

Method squeeze

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

Source from the content-addressed store, hash-verified

44 return TensorList([u.pow(*args, **kwargs) for u in self.tensors])
45
46 def squeeze(self, dim):
47 assert dim != 0
48 if dim > 0:
49 dim -= 1
50 return TensorList([u.squeeze(dim) for u in self.tensors])
51
52 def type(self, *args, **kwargs):
53 return TensorList([u.type(*args, **kwargs) for u in self.tensors])

Callers 15

generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
t2vMethod · 0.80
i2vMethod · 0.80
generateMethod · 0.80
forwardMethod · 0.80
encodeMethod · 0.80
decodeMethod · 0.80
forwardMethod · 0.80
encodeMethod · 0.80
decodeMethod · 0.80

Calls 1

TensorListClass · 0.85

Tested by

no test coverage detected