Internal change

PiperOrigin-RevId: 521424672
This commit is contained in:
MediaPipe Team 2023-04-03 04:44:26 -07:00 committed by Copybara-Service
parent 4a490cd27c
commit cfe91f3c8c

View File

@ -192,8 +192,7 @@ absl::Status CalculatorGraph::InitializeStreams() {
auto input_tag_map, auto input_tag_map,
tool::TagMap::Create(validated_graph_->Config().input_stream())); tool::TagMap::Create(validated_graph_->Config().input_stream()));
for (const auto& stream_name : input_tag_map->Names()) { for (const auto& stream_name : input_tag_map->Names()) {
RET_CHECK(!mediapipe::ContainsKey(graph_input_streams_, stream_name)) RET_CHECK(!graph_input_streams_.contains(stream_name)).SetNoLogging()
.SetNoLogging()
<< "CalculatorGraph Initialization failed, graph input stream \"" << "CalculatorGraph Initialization failed, graph input stream \""
<< stream_name << "\" was specified twice."; << stream_name << "\" was specified twice.";
int output_stream_index = validated_graph_->OutputStreamIndex(stream_name); int output_stream_index = validated_graph_->OutputStreamIndex(stream_name);