public interface ArrayHolder
Map<String,INDArray>
.SingleThreadArrayHolder
ThreadSafeArrayHolder
Modifier and Type | Method and Description |
---|---|
Collection<String> |
arrayNames() |
INDArray |
getArray(String name) |
boolean |
hasArray(String name) |
void |
initFrom(ArrayHolder arrayHolder)
Initialize from the specified array holder.
|
INDArray |
removeArray(String name)
Remove the array from the ArrayHolder, returning it (if it exists)
|
void |
rename(String from,
String to)
Rename the entry with the specified name
|
void |
setArray(String name,
INDArray array)
Set the array for the specified name (new array, or replace if it already exists)
|
int |
size() |
boolean hasArray(String name)
INDArray getArray(String name)
name
- Name of the array to getvoid setArray(String name, INDArray array)
name
- Name of the arrayarray
- Array to setINDArray removeArray(String name)
name
- Name of the array to returnint size()
void initFrom(ArrayHolder arrayHolder)
arrayHolder
- Array holder to initialize this based onCollection<String> arrayNames()
Copyright © 2020. All rights reserved.