Struct Input

Struct Documentation

struct Input

Represents input stream of a model.

@type name: str @ivar name: Name of the input layer.

@type dtype: DataType @ivar dtype: Data type of the input data (e.g., ‘float32’).

@type input_type: InputType @ivar input_type: Type of input data (e.g., ‘image’).

@type shape: list @ivar shape: Shape of the input data as a list of integers (e.g. [H,W], [H,W,C], [N,H,W,C], …).

@type layout: str @ivar layout: Lettercode interpretation of the input data dimensions (e.g., ‘NCHW’).

@type preprocessing: PreprocessingBlock @ivar preprocessing: Preprocessing steps applied to the input data. Represents input stream of a model.

@type name: str @ivar name: Name of the input layer.

@type dtype: DataType @ivar dtype: Data type of the input data (e.g., ‘float32’).

@type input_type: InputType @ivar input_type: Type of input data (e.g., ‘image’).

@type shape: list @ivar shape: Shape of the input data as a list of integers (e.g. [H,W], [H,W,C], [N,H,W,C], …).

@type layout: str @ivar layout: Lettercode interpretation of the input data dimensions (e.g., ‘NCHW’).

@type preprocessing: PreprocessingBlock @ivar preprocessing: Preprocessing steps applied to the input data.

Public Members

DataType dtype

Data type of the input data (e.g., ‘float32’).

InputType inputType

Type of input data (e.g., ‘image’).

std::optional<std::string> layout

Lettercode interpretation of the input data dimensions (e.g., ‘NCHW’)

std::string name

Name of the input layer.

PreprocessingBlock preprocessing

Preprocessing steps applied to the input data.

std::vector<int64_t> shape

Shape of the input data as a list of integers (e.g. [H,W], [H,W,C], [N,H,W,C], …).