SequenceNumber.h 359 B

12345678910111213141516
  1. #pragma once
  2. #include <c10/macros/Export.h>
  3. #include <cstdint>
  4. namespace at {
  5. // A simple thread local enumeration, used to link forward and backward pass
  6. // ops and is used by autograd and observers framework
  7. namespace sequence_number {
  8. TORCH_API uint64_t peek();
  9. TORCH_API uint64_t get_and_increment();
  10. } // namespace sequence_number
  11. } // namespace at