Skip to main content

dl::BatchModeSpec

dl::BatchModeSpec

JSON-serializable batch mode specification. More…

#include <RuntimeModelSpec.hpp>

Public Classes

Name
struct DynamicSpec

Public Functions

Name
BatchMode toBatchMode() const
Convert to a BatchMode variant, defaulting to Dynamic(1, 0).

Public Attributes

Name
std::optional< int > fixed
std::optional< DynamicSpec > dynamic
std::optional< bool > recurrent_only

Detailed Description

struct dl::BatchModeSpec;

JSON-serializable batch mode specification.

Maps to [dl::BatchMode](/api_generated/Namespaces/namespacedl.md#using-batchmode) at runtime. Exactly one of [fixed](/api_generated/Classes/structdl_1_1BatchModeSpec.md#variable-fixed), [dynamic](/api_generated/Classes/structdl_1_1BatchModeSpec.md#variable-dynamic), or [recurrent_only](/api_generated/Classes/structdl_1_1BatchModeSpec.md#variable-recurrent-only) should be set.

JSON examples: ```json

“batch_mode”: { “fixed”: 4 } “batch_mode”: { “dynamic”: { “min”: 1, “max”: 8 } } “batch_mode”: { “recurrent_only”: true }


## Public Functions Documentation

### function toBatchMode

```cpp
BatchMode toBatchMode() const

Convert to a BatchMode variant, defaulting to Dynamic(1, 0).

Public Attributes Documentation

variable fixed

std::optional< int > fixed;

Fixed(N)

variable dynamic

std::optional< DynamicSpec > dynamic;

Dynamic(min, max)

variable recurrent_only

std::optional< bool > recurrent_only;

RecurrentOnly


Updated on 2026-11-13 at 20:25:42 +0000