public abstract class GraphVertex extends Object implements Cloneable, Serializable
Constructor and Description |
---|
GraphVertex() |
Modifier and Type | Method and Description |
---|---|
abstract GraphVertex |
clone() |
abstract boolean |
equals(Object o) |
abstract MemoryReport |
getMemoryReport(InputType... inputTypes)
This is a report of the estimated memory consumption for the given vertex
|
abstract InputType |
getOutputType(int layerIndex,
InputType... vertexInputs)
Determine the type of output for this GraphVertex, given the specified inputs.
|
abstract int |
hashCode() |
abstract GraphVertex |
instantiate(ComputationGraph graph,
String name,
int idx,
INDArray paramsView,
boolean initializeParams,
org.nd4j.linalg.api.buffer.DataType networkDatatype)
Create a
GraphVertex instance, for the given computation graph,
given the configuration instance. |
abstract int |
maxVertexInputs() |
abstract int |
minVertexInputs() |
abstract long |
numParams(boolean backprop) |
void |
setDataType(org.nd4j.linalg.api.buffer.DataType dataType) |
public abstract GraphVertex clone()
public abstract long numParams(boolean backprop)
public abstract int minVertexInputs()
public abstract int maxVertexInputs()
public abstract GraphVertex instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, org.nd4j.linalg.api.buffer.DataType networkDatatype)
GraphVertex
instance, for the given computation graph,
given the configuration instance.graph
- The computation graph that this GraphVertex is to be part ofname
- The name of the GraphVertex objectidx
- The index of the GraphVertexparamsView
- A view of the full parameters arrayinitializeParams
- If true: initialize the parameters. If false: make no change to the values in the paramsView arraynetworkDatatype
- public abstract InputType getOutputType(int layerIndex, InputType... vertexInputs) throws InvalidInputTypeException
layerIndex
- The index of the layer (if appropriate/necessary).vertexInputs
- The inputs to this vertexInvalidInputTypeException
- If the input type is invalid for this type of GraphVertexpublic abstract MemoryReport getMemoryReport(InputType... inputTypes)
inputTypes
- Input types to the vertex. Memory consumption is often a function of the input typepublic void setDataType(org.nd4j.linalg.api.buffer.DataType dataType)
Copyright © 2019. All rights reserved.