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

Method take_along_axis

ot/backend.py:602–610  ·  view source on GitHub ↗

r""" Gathers elements of a tensor along given dimensions. This function follows the api from :any:`numpy.take_along_axis` See: https://numpy.org/doc/stable/reference/generated/numpy.take_along_axis.html

(self, arr, indices, axis)

Source from the content-addressed store, hash-verified

600 raise NotImplementedError()
601
602 def take_along_axis(self, arr, indices, axis):
603 r"""
604 Gathers elements of a tensor along given dimensions.
605
606 This function follows the api from :any:`numpy.take_along_axis`
607
608 See: https://numpy.org/doc/stable/reference/generated/numpy.take_along_axis.html
609 """
610 raise NotImplementedError()
611
612 def concatenate(self, arrays, axis=0):
613 r"""

Callers 14

test_empty_backendFunction · 0.95
take_along_axisMethod · 0.45
take_along_axisMethod · 0.45
take_along_axisMethod · 0.45
take_along_axisMethod · 0.45
quantile_functionFunction · 0.45
wasserstein_1dFunction · 0.45
roll_colsFunction · 0.45
ot_cost_on_circleFunction · 0.45
binary_search_circleFunction · 0.45
wasserstein1_circleFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36