From d71ed6b6f1379e4a9101638bfda2e81bf0880938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=85?= Date: Mon, 12 Mar 2018 11:13:09 +0800 Subject: [PATCH] Force print mace git version --- mace/core/mace.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mace/core/mace.cc b/mace/core/mace.cc index 557ef20f..be34f532 100644 --- a/mace/core/mace.cc +++ b/mace/core/mace.cc @@ -386,6 +386,9 @@ MaceEngine::MaceEngine(const NetDef *net_def, DeviceType device_type) net_ = std::move(CreateNet(op_registry_, *net_def, ws_.get(), device_type)); } } + +extern const char *MaceGitVersion(); + MaceEngine::MaceEngine(const NetDef *net_def, DeviceType device_type, const std::vector &input_nodes, @@ -395,6 +398,7 @@ MaceEngine::MaceEngine(const NetDef *net_def, ws_(new Workspace()), net_(nullptr), hexagon_controller_(nullptr) { + LOG(INFO) << "MACE GIT VERSION: " << MaceGitVersion(); for (auto input_name : input_nodes) { ws_->CreateTensor(MakeString("mace_input_node_", input_name, ":0"), GetDeviceAllocator(device_type_), DT_FLOAT); -- GitLab