public class OptimizedGraphArrayHolder extends Object implements ArrayHolder
Constructor and Description |
---|
OptimizedGraphArrayHolder(ArrayHolder underlyingHolder) |
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)
|
void |
setFunction(String name,
Supplier<INDArray> fn) |
int |
size() |
public OptimizedGraphArrayHolder(ArrayHolder underlyingHolder)
public boolean hasArray(String name)
hasArray
in interface ArrayHolder
public INDArray getArray(String name)
getArray
in interface ArrayHolder
name
- Name of the array to getpublic void setArray(String name, INDArray array)
ArrayHolder
setArray
in interface ArrayHolder
name
- Name of the arrayarray
- Array to setpublic INDArray removeArray(String name)
ArrayHolder
removeArray
in interface ArrayHolder
name
- Name of the array to returnpublic int size()
size
in interface ArrayHolder
public void initFrom(ArrayHolder arrayHolder)
ArrayHolder
initFrom
in interface ArrayHolder
arrayHolder
- Array holder to initialize this based onpublic Collection<String> arrayNames()
arrayNames
in interface ArrayHolder
public void rename(String from, String to)
ArrayHolder
rename
in interface ArrayHolder
from
- Original nameto
- New nameCopyright © 2022. All rights reserved.