Benign repos Download

attr_value_util.cc

imports tensorflow/core/platform/fingerprint.himports tensorflow/core/platform/hash.h
SHA-256cb660899dd0596426fe2d318f394782601388ae5957336c04da1e912804319a6
MaleculeMd(In₅)

Evidence

apache web server name lines 1–10
1/* Copyright 2015 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 …
imports tensorflow/core/platform/fingerprint.h lines 11–58
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/core/framework/attr_value_util.h"
17
18#include <algorithm>
19#include <cstdint>
20#include <functional>
21#include <initializer_list>
22#include <map>
23#include <string>
24#include <unordered_map>
25#include <utility>
26#include <vector>
27
28#include "absl/log/log.h"
29#include "absl/status/status.h"
30#include "absl/strings/escaping.h"
31#include "absl/strings/match.h"
32#include "absl/strings/str_cat.h"
33#include "absl/strings/str_join.h"
34#include "absl/strings/strip.h"
35#include "absl/types/span.h"
36#include "tensorflow/core/framework/attr_value.pb_text.h"
37#include "tensorflow/core/framework/tensor.h"
38#include "tensorflow/core/framework/tensor.pb.h"
39#include "tensorflow/core/framework/tensor_shape.h"
40#include "tensorflow/core/framework/tensor_shape.pb.h"
41#include "tensorflow/core/framework/types.h"
42#include "tensorflow/core/framework/types.pb_text.h"
43#include "tensorflow/core/lib/core/errors.h"
44#include "tensorflow/core/lib/core/stringpiece.h"
45#include "tensorflow/core/lib/gtl/array_slice.h"
46#include "tensorflow/core/lib/strings/proto_serialization.h"
47#include "tensorflow/core/lib/strings/str_util.h"
48#include "tensorflow/core/platform/fingerprint.h"
49#include "tensorflow/core/platform/hash.h"
50#include "tensorflow/core/platform/numbers.h"
51#include "tensorflow/core/platform/tstring.h"
52#include "tensorflow/core/platform/types.h"
53#include "tensorflow/core/util/overflow.h"
54
55namespace tensorflow {
56
57namespace attr_value_util_internal {
58// Return the size of the tenso …
English function-word token "have" lines 112–115
112:26… Tensors with identical content potentially can have a
113// different hash code if they are defined with different TensorProto
114// representations.
115uin …
English function-word token "that" lines 138–141
138:52… a much bigger Tensor,
139 // we have a fast-path that first compares the protos.
140 const int64_t lhs_proto_bytes = lhs.ByteSizeLong();
141 const bool l …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.