forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.h.in
More file actions
43 lines (35 loc) · 1.12 KB
/
version.h.in
File metadata and controls
43 lines (35 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @file
* ExecuTorch version information.
*
* This file is auto-generated by CMake from version.h.in.
* Do not edit directly.
*/
#pragma once
/// ExecuTorch major version number.
#define ET_VERSION_MAJOR @ET_VERSION_MAJOR@
/// ExecuTorch minor version number.
#define ET_VERSION_MINOR @ET_VERSION_MINOR@
/// ExecuTorch patch version number.
#define ET_VERSION_PATCH @ET_VERSION_PATCH@
/// ExecuTorch version string (e.g., "1.2.0").
#define ET_VERSION "@ET_VERSION_MAJOR@.@ET_VERSION_MINOR@.@ET_VERSION_PATCH@"
/**
* ExecuTorch version as an integer.
* Format: (MAJOR << 16) | (MINOR << 8) | PATCH
*/
#define ET_VERSION_CODE \
((ET_VERSION_MAJOR << 16) | (ET_VERSION_MINOR << 8) | ET_VERSION_PATCH)
/**
* Helper macro for version comparisons.
* Usage: #if ET_VERSION_CODE >= ET_VERSION_CHECK(1, 2, 0)
*/
#define ET_VERSION_CHECK(major, minor, patch) \
(((major) << 16) | ((minor) << 8) | (patch))