mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Differential Revision: [D83685392](https://our.internmc.facebook.com/intern/diff/D83685392) Pull Request resolved: https://github.com/pytorch/pytorch/pull/164381 Approved by: https://github.com/janeyx99
27 lines
919 B
C
27 lines
919 B
C
#pragma once
|
|
|
|
/// Indicates the major version of LibTorch.
|
|
#define TORCH_VERSION_MAJOR @TORCH_VERSION_MAJOR@
|
|
|
|
/// Indicates the minor version of LibTorch.
|
|
#define TORCH_VERSION_MINOR @TORCH_VERSION_MINOR@
|
|
|
|
/// Indicates the patch version of LibTorch.
|
|
#define TORCH_VERSION_PATCH @TORCH_VERSION_PATCH@
|
|
|
|
/// Indicates the ABI version tag of LibTorch.
|
|
#define TORCH_VERSION_ABI_TAG 0
|
|
|
|
/// Indicates the version of LibTorch as a string literal.
|
|
#define TORCH_VERSION \
|
|
"@TORCH_VERSION_MAJOR@.@TORCH_VERSION_MINOR@.@TORCH_VERSION_PATCH@"
|
|
|
|
/// Indicates the ABI version of LibTorch as a single uint64.
|
|
/// [ byte ][ byte ][ byte ][ byte ][ byte ][ byte ][ byte ][ byte ]
|
|
/// [ MAJ ][ MIN ][ PATCH][ ABI TAG ]
|
|
#define TORCH_ABI_VERSION \
|
|
(uint64_t)TORCH_VERSION_MAJOR << 56 | \
|
|
(uint64_t)TORCH_VERSION_MINOR << 48 | \
|
|
(uint64_t)TORCH_VERSION_PATCH << 40 | \
|
|
TORCH_VERSION_ABI_TAG << 0
|