cc/profiler/profiler.h: Marking single-parameter constructor as explicit

This commit is contained in:
Rickard 2020-09-17 11:15:38 +02:00
parent 44275dc6b0
commit 78a3e527ca

View File

@ -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