MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _valid_micro_batch

Method _valid_micro_batch

deepspeed/runtime/pipe/schedule.py:80–81  ·  view source on GitHub ↗
(self, micro_batch_id)

Source from the content-addressed store, hash-verified

78 return self.micro_batches
79
80 def _valid_micro_batch(self, micro_batch_id):
81 return 0 <= micro_batch_id < self.micro_batches
82
83 def _valid_stage(self, stage_id):
84 return 0 <= stage_id < self.stages

Callers 3

_buffer_idxMethod · 0.95
stepsMethod · 0.80
stepsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected