class_docstr: Linear Dynamic Batch Scheduler: scales up batch size linearly
class_docstr_tok: ["Linear","Dynamic","Batch","Scheduler",":","scales","up","batch","size","linearly"]
code: def compute_dynamic_batch_size(
      self,
      curr_epoch: int,
      scheduler_config: BatcherSchedulerConfig,
      curr_steps: int,
  ) -> int:
      batch_delta = (
          scheduler_config.end_batch_size
          - scheduler_config.start_batch_size
      )
      curr_est: float = (
          batch_delta
          / (scheduler_config.epoch_period / scheduler_config.step_size)
      ) * curr_steps + scheduler_config.start_batch_size
      return math.ceil(curr_est)
  
imports: import math
  from typing import Iterable
  from pytext.common.constants import Stage
  from pytext.config.module_config import ModuleConfig
  from .data import PoolingBatcher
  from .sources import RawExample
label_desc: Use image node_id 1 for calling the LinearDynamicPoolingBatcher obj's underlying member method code with example usage: obj.compute_dynamic_batch_size(curr_epoch, scheduler_config, curr_steps) and returns: math