From cfe91f3c8c3c3b1618a72d776db171b50f5d4491 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 3 Apr 2023 04:44:26 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 521424672 --- mediapipe/framework/calculator_graph.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mediapipe/framework/calculator_graph.cc b/mediapipe/framework/calculator_graph.cc index b49930b7a..06a57fa6d 100644 --- a/mediapipe/framework/calculator_graph.cc +++ b/mediapipe/framework/calculator_graph.cc @@ -192,8 +192,7 @@ absl::Status CalculatorGraph::InitializeStreams() { auto input_tag_map, tool::TagMap::Create(validated_graph_->Config().input_stream())); for (const auto& stream_name : input_tag_map->Names()) { - RET_CHECK(!mediapipe::ContainsKey(graph_input_streams_, stream_name)) - .SetNoLogging() + RET_CHECK(!graph_input_streams_.contains(stream_name)).SetNoLogging() << "CalculatorGraph Initialization failed, graph input stream \"" << stream_name << "\" was specified twice."; int output_stream_index = validated_graph_->OutputStreamIndex(stream_name);