merge.cc
imports tensorflow/core/platform/env.himports tensorflow/core/platform/file_system_helper.h
SHA-256b0d20f350f6dd26b4215eda09daa41ad48ceb9113d88d4899e0b83b9058d01f0
MaleculeMd(In₅)
Evidence
1/* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include "tensorflow/tools/proto_splitter/merge.h"
17
18#include <algorithm>
19#include <cstdint>
20#include <memory>
21#include <string>
22#include <utility>
23#include <vector>
24
25#include "absl/log/check.h"
26#include "absl/log/log.h"
27#include "absl/status/status.h"
28#include "absl/strings/str_cat.h"
29#include "absl/strings/string_view.h"
30#include "riegeli/base/object.h" // from @riegeli
31#include "riegeli/bytes/fd_reader.h" // from @riegeli
32#include "riegeli/records/record_reader.h" // from @riegeli
33#include "tensorflow/core/platform/env.h"
34#include "tensorflow/core/platform/file_system_helper.h"
35#include "tensorflow/tools/proto_splitter/cc/util.h"
36#include "tensorflow/tools/proto_splitter/chunk.pb.h"
37#include "tsl/platform/errors.h"
38#include "tsl/platform/protobuf.h"
39#include "tsl/platform/statusor.h"
40
41namespace tensorflow::tools::proto_splitter {
42
43using ::tensorflow::proto_splitter::ChunkedField;
44using ::tensorflow::proto_s …
206:33… depth and index.
207 // For example, this ensures that GraphDef.library is merged before
208 // GraphDef.library.function[0], which will be merged bef …
322:22… ld->is_map()) {
323 // messages of map type have the value at field #2
324 field_desc = mutable_field->message_type()->FindFieldByNumber(2); …