ParallelNative.h 292 B

123456789101112131415
  1. #pragma once
  2. #include <c10/util/Exception.h>
  3. #define INTRA_OP_PARALLEL
  4. namespace at::internal {
  5. TORCH_API void invoke_parallel(
  6. const int64_t begin,
  7. const int64_t end,
  8. const int64_t grain_size,
  9. const std::function<void(int64_t, int64_t)>& f);
  10. } // namespace at::internal