Package ai.djl.nn
package ai.djl.nn
Contains classes to construct neural networks.
The primary construct used to build up the networks is the Block
(see for
details). This package contains a number of implementations of blocks as well as helpers for
blocks.
The following subpackages also contain a number of standard neural network operations to use with blocks:
-
ClassDescriptionThis provides shared functionality for both the DJL-based
AbstractBlock
s and the importedAbstractSymbolBlock
s.AbstractBlock
is an abstract implementation ofBlock
.AbstractSymbolBlock
is an abstract implementation ofSymbolBlock
.Utility class that provides activation functions and blocks.ABlock
is a composable function that forms a neural network.Block factory is a component to make standard for block creating and saving procedure.Represents a set of names and Blocks.Utility class that provides some useful blocks.ABlockFactory
class that creates IdentityBlock.LambdaBlock
is aBlock
with no parameters or children.ABlockFactory
class that creates LambdaBlock.ParallelBlock
is aBlock
whose children form a parallel branch in the network and are combined to produce a single output.Parameter
is a container class that holds a learnable parameter of a model.A Builder to construct aParameter
.Enumerates the types ofParameter
.Represents a set of names and Parameters.SequentialBlock
is aBlock
whose children form a chain of blocks with each child block feeding its output to the next.SymbolBlock
is aBlock
is used to load models that were exported directly from the engine in its native format.Thrown to indicate that aParameter
was not initialized.