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

Method nan_to_num

ot/backend.py:2449–2451  ·  view source on GitHub ↗
(self, x, copy=True, nan=0.0, posinf=None, neginf=None)

Source from the content-addressed store, hash-verified

2447 return torch.matmul(a, b)
2448
2449 def nan_to_num(self, x, copy=True, nan=0.0, posinf=None, neginf=None):
2450 out = None if copy else x
2451 return torch.nan_to_num(x, nan=nan, posinf=posinf, neginf=neginf, out=out)
2452
2453 def det(self, x):
2454 return torch.linalg.det(x)

Callers

nothing calls this directly

Calls 1

nan_to_numMethod · 0.45

Tested by

no test coverage detected