From 78a3e527caf5d568b567fd4f16db7ae8b995afe2 Mon Sep 17 00:00:00 2001 From: Rickard Date: Thu, 17 Sep 2020 11:15:38 +0200 Subject: [PATCH] cc/profiler/profiler.h: Marking single-parameter constructor as explicit --- tensorflow/cc/profiler/profiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/cc/profiler/profiler.h b/tensorflow/cc/profiler/profiler.h index 56f3e603848..6ac46b37a95 100644 --- a/tensorflow/cc/profiler/profiler.h +++ b/tensorflow/cc/profiler/profiler.h @@ -58,7 +58,7 @@ namespace tfprof { class Profiler { public: /// `graph` is the model's GraphDef. - Profiler(const GraphDef& graph); + explicit Profiler(const GraphDef& graph); /// Adds tracing information `run_meta` to profiler. A `run_meta` is /// generated by a TensorFlow session run call. `step` is the key