Benign repos Download

tpu_execute_op.cc

imports tensorflow/core/platform/refcount.himports tensorflow/core/platform/status.h
SHA-25623c1139c826f9d1a06db665cf0b48a06eebb381466c3d2b5d30c6f9c43396b4e
MaleculeMd(In₉)

Evidence

apache web server name lines 1–10
1/* Copyright 2020 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/refcount.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#include "tensorflow/core/tpu/kernels/tpu_execute_op.h"
16
17#include <cstdint>
18#include <memory>
19#include <string>
20#include <utility>
21#include <vector>
22
23#include "absl/base/casts.h"
24#include "absl/container/flat_hash_map.h"
25#include "absl/status/status.h"
26#include "absl/status/statusor.h"
27#include "absl/strings/str_cat.h"
28#include "absl/types/span.h"
29#include "tensorflow/compiler/jit/variable_info.h"
30#include "tensorflow/compiler/jit/variable_info_util.h"
31#include "tensorflow/compiler/jit/xla_device.h"
32#include "tensorflow/compiler/jit/xla_tensor.h"
33#include "tensorflow/compiler/tf2xla/shape_util.h"
34#include "tensorflow/compiler/tf2xla/tf2xla_util.h"
35#include "xla/debug_options_flags.h"
36#include "xla/literal.h"
37#include "xla/service/backend.h"
38#include "xla/service/computation_placer.h"
39#include "xla/service/dump.h"
40#include "xla/service/executable.h"
41#include "xla/service/maybe_owning_device_memory.h"
42#include "xla/service/shaped_buffer.h"
43#include "xla/service/transfer_manager.h"
44#include "xla/shape.h"
45#include "xla/shape_tree.h"
46#include "xla/shape_util.h"
47#include "xla/status_macros.h"
48#include "xla/stream_executor/device_memory.h"
49#include "xla/stream_executor/device_memory_allocator.h"
50#include "xla/stream_executor/event.h"
51#include "xla/stream_executor/stream.h"
52#include "xla/stream_executor/tpu/tpu_node_context.h"
53#include "xla/tsl/platform/errors.h"
54#include "xla/tsl/platform/logging.h" // IWYU pragma: keep
55#include "xla/tsl/platform/macros.h"
56#include "xla/tsl/platform/statusor.h"
57#include "xla/xla_data.pb.h"
58#include "tensorflow/core/framework/node_def_util.h"
English function-word token "have" lines 115–117
115:28… e updated output index. If the variable doesn't have
116 // an updated output, the corresponding output is set to -1.
117 absl::flat_hash_map<int, int> …
English function-word token "that" lines 118–123
118:19… ndex to (the input index, whether the update is generated from
119 // compilation).
120 absl::flat_hash_map<int, std::pair<int, bool>> output_to_input;
121 // Part of the input indices that are from the compilation, in the compiled
122 // order.
123 std::vector<int> input_in_compiled_upda …

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.