Skip to main content

dl::constraints::BatchSizeConstraint

dl::constraints::BatchSizeConstraint

Computed batch-size constraint derived from model batch mode and active recurrent bindings. More…

#include <ConstraintEnforcer.hpp>

Public Attributes

Name
int min
Minimum allowed batch size.
int max
Maximum allowed batch size (0 = unlimited).
bool forced_by_recurrent
True if locked to 1 because of active recurrent bindings.

Detailed Description

struct dl::constraints::BatchSizeConstraint;

Computed batch-size constraint derived from model batch mode and active recurrent bindings.

When min == max the effective batch size is locked to that single value. forced_by_recurrent distinguishes recurrent-binding locks from model locks.

Public Attributes Documentation

variable min

int min = 1;

Minimum allowed batch size.

variable max

int max = 0;

Maximum allowed batch size (0 = unlimited).

variable forced_by_recurrent

bool forced_by_recurrent = false;

True if locked to 1 because of active recurrent bindings.


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