Package ai.djl.nn
Class OnesBlockFactory
java.lang.Object
ai.djl.nn.OnesBlockFactory
- All Implemented Interfaces:
BlockFactory,Serializable
A
BlockFactory class that creates LambdaBlock.- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OnesBlockFactory
public OnesBlockFactory()
-
-
Method Details
-
newBlock
Constructs the uninitialized block.- Specified by:
newBlockin interfaceBlockFactory- Parameters:
model- the model of the blockmodelPath- the directory of the model locationarguments- the block creation arguments- Returns:
- the uninitialized block
-