提交 db65d28d 编写于 作者: C Chao Mei 提交者: TensorFlower Gardener

Add a log when a tflite delegate is created.

PiperOrigin-RevId: 306590390
Change-Id: I98b5d17b95747420b2dd0c3c0c037a6088cd495e
上级 2ddbc357
......@@ -71,6 +71,7 @@ cc_library(
deps = [
":utils",
"//tensorflow/lite/tools:command_line_flags",
"//tensorflow/lite/tools:logging",
"//tensorflow/lite/tools:tool_params",
"//tensorflow/lite/tools/benchmark:delegate_provider_hdr",
"//tensorflow/lite/tools/benchmark:tflite_execution_providers",
......
......@@ -16,6 +16,7 @@ limitations under the License.
#include "tensorflow/lite/tools/evaluation/evaluation_delegate_provider.h"
#include "tensorflow/lite/tools/command_line_flags.h"
#include "tensorflow/lite/tools/logging.h"
namespace tflite {
namespace evaluation {
......@@ -118,6 +119,7 @@ std::vector<TfLiteDelegatePtr> DelegateProviders::CreateAllDelegates(
// user-specified benchmark params tells not to.
if (ptr == nullptr) continue;
delegates.emplace_back(std::move(ptr));
TFLITE_LOG(INFO) << one->GetName() << " delegate is created.";
}
return delegates;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册