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

Method dtype_device

ot/backend.py:3216–3217  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

3214 return tnp.allclose(a, b, rtol=rtol, atol=atol, equal_nan=equal_nan)
3215
3216 def dtype_device(self, a):
3217 return a.dtype, a.device.split("device:")[1]
3218
3219 def assert_same_dtype_device(self, a, b):
3220 a_dtype, a_device = self.dtype_device(a)

Calls

no outgoing calls