File size: 292 Bytes
9c6594c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#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