vision.h 394 Bytes
Newer Older
1
#pragma once
Shahriar's avatar
Shahriar committed
2

3
4
5
6
#include <cstdint>
#include "macros.h"

namespace vision {
7
VISION_API int64_t cuda_version();
8
9
10
11
12
13
14
15

namespace detail {
// Dummy variable to reference a symbol from vision.cpp.
// This ensures that the torchvision library and the ops registration
// initializers are not pruned.
VISION_INLINE_VARIABLE int64_t _cuda_version = cuda_version();
} // namespace detail
} // namespace vision