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

Method device_type

ot/backend.py:3237–3238  ·  view source on GitHub ↗
(self, type_as)

Source from the content-addressed store, hash-verified

3235 return type_as.dtype.size * 8
3236
3237 def device_type(self, type_as):
3238 return self.dtype_device(type_as)[1].split(":")[0]
3239
3240 def _bench(self, callable, *args, n_runs=1, warmup_runs=1):
3241 results = dict()

Callers 1

_benchMethod · 0.95

Calls 1

dtype_deviceMethod · 0.95

Tested by

no test coverage detected