add version support (#15469)
parent
526790e652
commit
b62b756b28
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace paddle {
|
||||
namespace framework {
|
||||
|
||||
static std::string paddle_commit() {
|
||||
return "@PADDLE_COMMIT@";
|
||||
}
|
||||
|
||||
static std::string paddle_compile_branch() {
|
||||
return "@PADDLE_BRANCH@";
|
||||
}
|
||||
|
||||
static std::string paddle_version() {
|
||||
return "@PADDLE_VERSION@";
|
||||
}
|
||||
|
||||
} // namespace framework
|
||||
} // namespace paddle
|
Loading…
Reference in new issue