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

Function _get_backend_instance

ot/backend.py:174–177  ·  view source on GitHub ↗
(backend_impl)

Source from the content-addressed store, hash-verified

172
173
174def _get_backend_instance(backend_impl):
175 if backend_impl.__name__ not in _BACKENDS:
176 _BACKENDS[backend_impl.__name__] = backend_impl()
177 return _BACKENDS[backend_impl.__name__]
178
179
180def _check_args_backend(backend_impl, args):

Callers 2

get_backend_listFunction · 0.85
get_backendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected