class nbla::BackendUtils
-
class BackendUtils
BackendUtils class.
This class is never be instantiated.
Public Static Functions
-
static void add_backend(const string &backend_name, BackendGetter backend_getter)
Register new synchronizer.
-
static vector<string> array_classes(const Context ctx)
Call array_classes of the backend in a context.
-
static void _set_array_classes(const Context ctx, const vector<string> &a)
Call _set_array_classes of the backend in a context.
Note
Dangerous to call. End users shouldn’t call.
-
static void register_array_class(const Context ctx, const string &name)
Call register_array_class of the backend in a context.
-
static shared_ptr<Allocator> caching_allocator(const Context ctx)
Call caching_allocator of the backend in a context.
-
static shared_ptr<Allocator> naive_allocator(const Context ctx)
Call naive_allocator of the backend in a context.
-
static void device_synchronize(const Context ctx)
Call device_synchronize of the backend in a context.
-
static void add_backend(const string &backend_name, BackendGetter backend_getter)