public abstract class Nd4jBackend extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Nd4jBackend.NoAvailableBackendException |
| Modifier and Type | Field and Description |
|---|---|
static int |
BACKEND_PRIORITY_CPU |
static int |
BACKEND_PRIORITY_GPU |
| Constructor and Description |
|---|
Nd4jBackend() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
allowsOrder()
Returns true if the
backend allows order to be specified
on blas operations (cblas)
|
abstract boolean |
canRun()
Returns true if the backend can
run on the os or not
|
abstract Class |
getComplexNDArrayClass()
Get the actual (concrete/implementation) class for complex INDArrays for this backend
|
abstract Resource |
getConfigurationResource()
Get the configuration resource
|
Nd4jContext |
getContext() |
abstract Class |
getNDArrayClass()
Get the actual (concrete/implementation) class for standard INDArrays for this backend
|
abstract int |
getPriority()
Gets a priority number for the backend.
|
Properties |
getProperties() |
abstract boolean |
isAvailable()
Determines whether a given backend is available in the current environment.
|
static Nd4jBackend |
load()
Loads the best available backend.
|
String |
toString() |
public static final int BACKEND_PRIORITY_CPU
public static final int BACKEND_PRIORITY_GPU
public abstract boolean allowsOrder()
public abstract int getPriority()
public abstract boolean isAvailable()
public abstract boolean canRun()
public abstract Resource getConfigurationResource()
public abstract Class getNDArrayClass()
public abstract Class getComplexNDArrayClass()
public static Nd4jBackend load() throws Nd4jBackend.NoAvailableBackendException
Nd4jBackend.NoAvailableBackendExceptionpublic Properties getProperties() throws IOException
IOExceptionpublic Nd4jContext getContext() throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.