Expose recordSize in ChunkRecordIterator (#120239)

Summary: Add a public method to read recordSize in ChunkRecordIterator

Test Plan: ci

Differential Revision: D53931944

Pull Request resolved: https://github.com/pytorch/pytorch/pull/120239
Approved by: https://github.com/zoranzhao
This commit is contained in:
Quinn Zhu 2024-02-21 04:33:03 +00:00 committed by PyTorch MergeBot
parent 26610175d2
commit 3993771617

View File

@ -104,6 +104,7 @@ class TORCH_API ChunkRecordIterator {
// Read at most `chunkSize` into `buf`. Return the number of actual bytes read.
size_t next(void* buf);
size_t recordSize() const { return recordSize_; }
private:
ChunkRecordIterator(