You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
354 B

5 months ago
#pragma once
#include <algorithm>
#include <cstddef>
#include <exception>
#include <c10/util/Exception.h>
#define INTRA_OP_PARALLEL
namespace at::internal {
TORCH_API void invoke_parallel(
const int64_t begin,
const int64_t end,
const int64_t grain_size,
const std::function<void(int64_t, int64_t)>& f);
} // namespace at::internal