public abstract class GenericTensorUnaryOpVertex<IN,OUT> extends GenericTensorVertex<OUT> implements NonProbabilistic<GenericTensor<OUT>>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INPUT_NAME |
protected Vertex<GenericTensor<IN>> |
inputVertex |
| Constructor and Description |
|---|
GenericTensorUnaryOpVertex(long[] shape,
Vertex<GenericTensor<IN>> inputVertex) |
| Modifier and Type | Method and Description |
|---|---|
GenericTensor<OUT> |
calculate() |
Vertex<GenericTensor<IN>> |
getInputVertex() |
protected abstract GenericTensor<OUT> |
op(GenericTensor<IN> a) |
slice, takeaddChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, loadValue, observe, observeOwnValue, print, print, removeLabel, save, saveValue, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontradictsObservationgetObservedValue, isObserved, observe, unobserveprotected static final java.lang.String INPUT_NAME
protected final Vertex<GenericTensor<IN>> inputVertex
public GenericTensorUnaryOpVertex(long[] shape,
Vertex<GenericTensor<IN>> inputVertex)
public GenericTensor<OUT> calculate()
calculate in interface NonProbabilistic<GenericTensor<OUT>>protected abstract GenericTensor<OUT> op(GenericTensor<IN> a)
public Vertex<GenericTensor<IN>> getInputVertex()