MCPcopy Create free account
hub / github.com/PythonOT/POT / squeeze

Method squeeze

ot/backend.py:1799–1800  ·  view source on GitHub ↗
(self, a, axis=None)

Source from the content-addressed store, hash-verified

1797 ), f"Device discrepancy. First input is on {str(a_device)}, whereas second input is on {str(b_device)}"
1798
1799 def squeeze(self, a, axis=None):
1800 return jnp.squeeze(a, axis=axis)
1801
1802 def unsqueeze(self, a, axis):
1803 return jnp.expand_dims(a, axis=axis)

Callers

nothing calls this directly

Calls 1

squeezeMethod · 0.45

Tested by

no test coverage detected