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

Method reshape

ot/backend.py:742–750  ·  view source on GitHub ↗

r""" Gives a new shape to a tensor without changing its data. This function follows the api from :any:`numpy.reshape` See: https://numpy.org/doc/stable/reference/generated/numpy.reshape.html

(self, a, shape)

Source from the content-addressed store, hash-verified

740 raise NotImplementedError()
741
742 def reshape(self, a, shape):
743 r"""
744 Gives a new shape to a tensor without changing its data.
745
746 This function follows the api from :any:`numpy.reshape`
747
748 See: https://numpy.org/doc/stable/reference/generated/numpy.reshape.html
749 """
750 raise NotImplementedError()
751
752 def seed(self, seed=None):
753 r"""

Callers 15

test_empty_backendFunction · 0.95
_init_lr_sinkhornFunction · 0.45
sinkhorn_low_rank_kernelFunction · 0.45
line_search_armijoFunction · 0.45
lp_solverFunction · 0.45
dist0Function · 0.45
reshapeMethod · 0.45
reshapeMethod · 0.45
reshapeMethod · 0.45

Calls

no outgoing calls