Package io.github.kirstenali.deepj.nn
Class Module
java.lang.Object
io.github.kirstenali.deepj.nn.Module
- Direct Known Subclasses:
Activation,Autoencoder,BatchNorm,Conv1D,Conv2D,Dropout,EncoderAttention,Flatten,GlobalAveragePool,Pool1D,Pool2D,Recurrent,RecurrentCell,Reshape,Sequential,TransformerEncoder,TransformerEncoderLayer
Additive layer base with recursive training mode and identity-deduplicated parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuffers()Persistent non-parameter tensors, in deterministic traversal order.children()final voideval()final booleanfinal voidsetTraining(boolean enabled) final voidtrain()Methods 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, forward, supportsIncrementalInference
-
Constructor Details
-
Module
public Module()
-
-
Method Details
-
isTraining
public final boolean isTraining() -
train
public final void train() -
eval
public final void eval() -
setTraining
public final void setTraining(boolean enabled) -
children
-
parameters
- Specified by:
parametersin interfaceTrainable
-
buffers
Persistent non-parameter tensors, in deterministic traversal order.
-