Skip to content

← deep_learning package

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.

  • verbose name: Data
  • default value: None
  • port type: DataPort
  • value type: AnyNumeric (can be None)
  • data direction: INOUT

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.

  • verbose name: Number Of Dimensions To Preserve
  • default value: None
  • port type: IntPort
  • value type: int (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

  • verbose name: Set Breakpoint (Debug Only)
  • default value: False
  • port type: BoolPort
  • value type: bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

  • verbose name: Metadata
  • default value: {}
  • port type: DictPort
  • value type: dict (can be None)