BatchFlatten¶
Flatten all axes of the input tensor except for the batch dimension (or more generally n leading dimensions).
This simplifies flattening the input to a layer without having to explicitly preserve the batch dimension. Version 0.2.0
Ports/Properties¶
data¶
Data to process.
preserve_dims¶
Number of leading dimensions to preserve from the input shape. When using packet data as inputs, this will ensure that any instance axes are at the beginning of the data, and when left unspecified and will automatically preserve those axes; otherwise it will preserve the selected number of dimensions. The flattened axis will be a generic feature axis. For plain array inputs, this will instead default to 1, which preserves the usual leading batch dimension.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.