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

Method _detach

ot/backend.py:299–301  ·  view source on GitHub ↗

Detach the tensor from the computation graph

(self, a)

Source from the content-addressed store, hash-verified

297 return [self._detach(array) for array in arrays]
298
299 def _detach(self, a):
300 """Detach the tensor from the computation graph"""
301 raise NotImplementedError()
302
303 def zeros(self, shape, type_as=None):
304 r"""

Callers 1

detachMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected