function
build
PythonBuild a faithful MLPerf Tiny architecture without loading or converting weights.
build( params: MlperfTinyParams, input_shape: tuple[int | None, ...] | None = None, *, batch_size: int | None = None, name: str | None = None,) -> keras.ModelBuild a faithful MLPerf Tiny architecture without loading or converting weights.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
params | MlperfTinyParams | Required | The architecture: ``kws``, ``vww``, ``resnet`` or ``ad``. |
input_shape | tuple[int | None, ...] | None | None | None, or the architecture's fixed input shape. |
batch_size | int | None | None | Static batch size; None for a dynamic batch. |
name | str | None | None | Model name; the family when None. |
Returns
| Type | Description |
|---|---|
keras.Model | keras.Model: The model, named ``mlperf_tiny`` unless ``name`` is given. |