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

Method bitsize

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

Source from the content-addressed store, hash-verified

3232 return tnp.expand_dims(a, axis=axis)
3233
3234 def bitsize(self, type_as):
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]

Callers 1

_benchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected