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 |
canRun()
Returns true if the backend can
run on the os or not
|
abstract Resource |
getConfigurationResource()
Get the configuration resource
|
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.
|
public static final int BACKEND_PRIORITY_CPU
public static final int BACKEND_PRIORITY_GPU
public abstract int getPriority()
public abstract boolean isAvailable()
public abstract boolean canRun()
public abstract Resource getConfigurationResource()
public static Nd4jBackend load() throws Nd4jBackend.NoAvailableBackendException
Nd4jBackend.NoAvailableBackendExceptionpublic Properties getProperties() throws IOException
IOExceptionCopyright © 2016. All Rights Reserved.