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

Method cumsum

ot/backend.py:2031–2035  ·  view source on GitHub ↗
(self, a, axis=None)

Source from the content-addressed store, hash-verified

2029 return torch.sum(a, axis, keepdim=keepdims)
2030
2031 def cumsum(self, a, axis=None):
2032 if axis is None:
2033 return torch.cumsum(a.flatten(), 0)
2034 else:
2035 return torch.cumsum(a, axis)
2036
2037 def max(self, a, axis=None, keepdims=False):
2038 if axis is None:

Callers

nothing calls this directly

Calls 1

cumsumMethod · 0.45

Tested by

no test coverage detected