mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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:
parent
26610175d2
commit
3993771617
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user