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

Method squeeze

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

Source from the content-addressed store, hash-verified

3226 ), f"Device discrepancy. First input is on {str(a_device)}, whereas second input is on {str(b_device)}"
3227
3228 def squeeze(self, a, axis=None):
3229 return tnp.squeeze(a, axis=axis)
3230
3231 def unsqueeze(self, a, axis):
3232 return tnp.expand_dims(a, axis=axis)

Callers

nothing calls this directly

Calls 1

squeezeMethod · 0.45

Tested by

no test coverage detected