vision.h 474 Bytes
Newer Older
Shahriar's avatar
Shahriar committed
1
2
3
4
#ifndef VISION_H
#define VISION_H

#include <torchvision/models/models.h>
5
6
7
8
#include <cstdint>
#include "macros.h"

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

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
Shahriar's avatar
Shahriar committed
18

Francisco Massa's avatar
Francisco Massa committed
19
#endif // VISION_H