Package mklab.JGNN.nn.operations
Class Reshape
java.lang.Object
mklab.JGNN.nn.NNOperation
mklab.JGNN.nn.operations.Reshape
Implements a
NNOperation that reshapes a matrix.- Author:
- Emmanouil Krasanakis
-
Nested Class Summary
Nested classes/interfaces inherited from class mklab.JGNN.nn.NNOperation
NNOperation.ThreadData -
Field Summary
Fields inherited from class mklab.JGNN.nn.NNOperation
debugging -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TensorProvides a simple description to show when drawing .dot format diagrams.booleanChecks whether the operation's output should be cached given that it is a constant.protected TensorsetDimensionName(String rowName, String colName) Methods inherited from class mklab.JGNN.nn.NNOperation
addInput, autosize, clearPrediction, data, describe, getDescription, getInputs, getLastTapeError, getNonLinearity, getOutputs, getPrediction, isConstant, isInputNeededForDerivative, isOutputNeededForDerivative, run, run, runPrediction, runPredictionAndAutosize, setDescription, trainParameters, view
-
Constructor Details
-
Reshape
public Reshape(long rows, long cols)
-
-
Method Details
-
forward
- Specified by:
forwardin classNNOperation
-
getSimpleDescription
Description copied from class:NNOperationProvides a simple description to show when drawing .dot format diagrams.- Overrides:
getSimpleDescriptionin classNNOperation- Returns:
- A string description, usually the component's class name.
-
partial
- Specified by:
partialin classNNOperation
-
isCachable
public boolean isCachable()Description copied from class:NNOperationChecks whether the operation's output should be cached given that it is a constant. This returnsfalseonly for randomized components that yield different outputs from different inputs, such as dropouts.- Overrides:
isCachablein classNNOperation- Returns:
- A
booleanvalues.
-
setDimensionName
-