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

Method full

ot/backend.py:333–341  ·  view source on GitHub ↗

r""" Creates a tensor with given shape, filled with given value. This function follows the api from :any:`numpy.full` See: https://numpy.org/doc/stable/reference/generated/numpy.full.html

(self, shape, fill_value, type_as=None)

Source from the content-addressed store, hash-verified

331 raise NotImplementedError()
332
333 def full(self, shape, fill_value, type_as=None):
334 r"""
335 Creates a tensor with given shape, filled with given value.
336
337 This function follows the api from :any:`numpy.full`
338
339 See: https://numpy.org/doc/stable/reference/generated/numpy.full.html
340 """
341 raise NotImplementedError()
342
343 def eye(self, N, M=None, type_as=None):
344 r"""

Callers 15

test_empty_backendFunction · 0.95
sinkhorn_low_rank_kernelFunction · 0.45
fullMethod · 0.45
fullMethod · 0.45
fullMethod · 0.45
fullMethod · 0.45
fullMethod · 0.45
wasserstein_1dFunction · 0.45
binary_search_circleFunction · 0.45
wasserstein1_circleFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_empty_backendFunction · 0.76
test_func_backendsFunction · 0.36
test_nystroem_sinkhornFunction · 0.36
test_nystroem_sinkhorn2Function · 0.36