API Reference - Containers - Sequential
Constructors
new()
Creates a new cost function object.
Sequential.new(): ContainerObject
Returns:
- Container: The generated container object.
Functions
setMultipleFunctionBlocks()
Sequential:setMultipleFunctionBlocks(...: FunctionBlockObject)
Parameters:
- FunctionBlock: The function blocks to be added to the sequential container.
detachAllFunctionBlocks()
Sequential:detachAllFunctionBlocks()
clearAllStoredTensors()
Sequential:clearAllStoredTensors()
getFunctionBlockByIndex()
Sequential:getFunctionBlockByIndex(index): FunctionBlockObject
Parameters:
- index: The index of the function block.
Returns:
- FunctionBlock: A function block from the specified index.
getFunctionBlockArray()
Sequential:getFunctionBlockArray(): {FunctionBlockObject}
Returns:
- FunctionBlockArray: An array containing all the function blocks. The first function block in the array represents the first function block.