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 org.springframework.core.io.Resource |
getConfigurationResource() |
abstract int |
getPriority()
Gets a priority number for the backend.
|
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 org.springframework.core.io.Resource getConfigurationResource()
public static Nd4jBackend load() throws Nd4jBackend.NoAvailableBackendException
Nd4jBackend.NoAvailableBackendException
Copyright © 2015. All Rights Reserved.