tensorly.set_backend

set_backend(backend, local_threadsafe=False)[source]

Changes the backend to the specified one

Parameters:

backend : tensorly.Backend or str

name of the backend to load or Backend Class

local_threadsafe : bool, optional, default is False

If False, set the backend as default for all threads