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

Method _to_numpy

ot/backend.py:269–271  ·  view source on GitHub ↗

Returns the numpy version of a tensor

(self, a)

Source from the content-addressed store, hash-verified

267
268 # convert a tensor to numpy
269 def _to_numpy(self, a):
270 """Returns the numpy version of a tensor"""
271 raise NotImplementedError()
272
273 # convert batch of arrays from numpy
274 def from_numpy(self, *arrays, type_as=None):

Callers 2

to_numpyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected