public class Operands extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Operands.NodeDescriptor |
Constructor and Description |
---|
Operands() |
Modifier and Type | Method and Description |
---|---|
Operands |
addArgument(int id,
INDArray array)
This method allows to pass array to the node identified by numeric id
|
Operands |
addArgument(int id,
int index,
INDArray array)
This method allows to pass array to multi-output node in the graph
|
Operands |
addArgument(String id,
INDArray array)
This method allows to pass array to the node identified by its name
|
Operands |
addArgument(String name,
int id,
int index,
INDArray array)
This method allows to pass array to multi-output node in the graph
|
INDArray[] |
asArray()
This method return operands as array, in order of addition
|
Collection<org.nd4j.linalg.primitives.Pair<Operands.NodeDescriptor,INDArray>> |
asCollection()
This method returns contents of this entity as collection of key->value pairs
|
INDArray |
getById(int id)
This method returns array identified its numeric id
|
INDArray |
getById(int id,
int index)
This method returns array identified its numeric id and index
|
INDArray |
getById(String name)
This method returns array identified its name
|
int |
size()
This method returns number of values in this entity
|
public Operands addArgument(@NonNull String id, @NonNull INDArray array)
id
- array
- public Operands addArgument(int id, @NonNull INDArray array)
id
- array
- public Operands addArgument(int id, int index, @NonNull INDArray array)
id
- index
- array
- public Operands addArgument(String name, int id, int index, @NonNull INDArray array)
id
- index
- array
- public INDArray getById(@NonNull String name)
name
- public INDArray getById(int id)
name
- public INDArray getById(int id, int index)
name
- public INDArray[] asArray()
public Collection<org.nd4j.linalg.primitives.Pair<Operands.NodeDescriptor,INDArray>> asCollection()
public int size()
Copyright © 2019. All rights reserved.