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

Method bitsize

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

Source from the content-addressed store, hash-verified

2349 return torch.unsqueeze(a, dim=axis)
2350
2351 def bitsize(self, type_as):
2352 return torch.finfo(type_as.dtype).bits
2353
2354 def device_type(self, type_as):
2355 return type_as.device.type.replace("cuda", "gpu").upper()

Callers 1

_benchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected