Memory-efficient batch processor for training logs
Constructors
new(batch_size :
Int32 = 1000, max_memory_mb :
Int32 = 256, use_chunked_storage :
Bool = true)
SourceInstance methods
Add a log entry to the current batch if memory allows
Sourcebatch_ready?
Check if batch is ready for processing
Sourcechunked_storage
Get access to chunked storage for reading
Sourcecurrent_memory_usage
Get current memory usage in bytes
Sourcememory_usage_percent
Get current memory usage as percentage of max
Source