Package io.github.kirstenali.deepj.nn
Class RecurrentCell
java.lang.Object
io.github.kirstenali.deepj.nn.Module
io.github.kirstenali.deepj.nn.RecurrentCell
Shared input/state validation and DeepJ linear projections for recurrent cells.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecurrentCell(int inputs, int hidden, int gates, Random random, ParameterFactory parameters) -
Method Summary
Modifier and TypeMethodDescriptionchildren()final Tensorprotected final Tensorprotected booleanfinal intfinal RecurrentStateinitialState(int batch, DType dtype) final intprotected abstract RecurrentStatenext(Tensor input, RecurrentState state) final RecurrentStatestep(Tensor input, RecurrentState state) Methods inherited from class io.github.kirstenali.deepj.nn.Module
buffers, eval, isTraining, parameters, setTraining, trainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.kirstenali.deepj.layers.Layer
forward, supportsIncrementalInference
-
Field Details
-
inputProjection
-
-
Constructor Details
-
RecurrentCell
protected RecurrentCell(int inputs, int hidden, int gates, Random random, ParameterFactory parameters)
-
-
Method Details