W3cubDocs

/PyTorch 2.9

MemRecordsAcc

class torch.autograd.profiler_util.MemRecordsAcc(mem_records) [source]

Acceleration structure for accessing mem_records in interval.

in_interval(start_us, end_us) [source]

Return all records in the given interval To maintain backward compatibility, convert us to ns in function

© 2025, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.9/generated/torch.autograd.profiler_util.MemRecordsAcc.html