public interface BlockFactory
extends java.io.Serializable
ModelZoo
or DJL Serving to recover the block to its uninitialized states. User should
combine this method with the block.loadParameter to get the block with all parameters.Modifier and Type | Method and Description |
---|---|
Block |
newBlock(Model model,
java.nio.file.Path modelPath,
java.util.Map<java.lang.String,?> arguments)
Constructs the uninitialized block.
|
Block newBlock(Model model, java.nio.file.Path modelPath, java.util.Map<java.lang.String,?> arguments) throws java.io.IOException
model
- the model of the blockmodelPath
- the directory of the model locationarguments
- the block creation argumentsjava.io.IOException
- if IO operation fails during creating block