Package ai.djl.nn
Interface SymbolBlock
- All Superinterfaces:
Block
- All Known Implementing Classes:
AbstractSymbolBlock
SymbolBlock is a Block is used to load models that were exported directly from
the engine in its native format.-
Method Summary
Modifier and TypeMethodDescriptionReturns aPairListof output names and shapes stored in model file.static SymbolBlocknewInstance(NDManager manager) Creates an empty SymbolBlock instance.default voidRemoves the last block in the symbolic graph.Methods inherited from interface ai.djl.nn.Block
cast, clear, describeInput, forward, forward, forward, freezeParameters, freezeParameters, getChildren, getDirectParameters, getInputShapes, getOutputDataTypes, getOutputShapes, getOutputShapes, getParameters, initialize, isInitialized, loadParameters, saveParameters, setInitializer, setInitializer, setInitializer
-
Method Details
-
newInstance
Creates an empty SymbolBlock instance.- Parameters:
manager- the manager to be applied in the SymbolBlock- Returns:
- a new Model instance
-
removeLastBlock
default void removeLastBlock()Removes the last block in the symbolic graph. -
describeOutput
Returns aPairListof output names and shapes stored in model file.- Returns:
- the
PairListof output names, and shapes
-