xla_ops.cc
imports tensorflow/core/platform/env.himports tensorflow/core/platform/errors.h
SHA-2562c06f6d2edf00385a053691f038869e66f11e8314db27b0b457ed6b93fbdd490
MaleculeMd(In₉)
Evidence
1/* Copyright 2017 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/compiler/jit/kernels/xla_ops.h"
17
18#include <cstdint>
19#include <functional>
20#include <memory>
21#include <numeric>
22#include <optional>
23#include <set>
24#include <string>
25#include <tuple>
26#include <utility>
27#include <vector>
28
29#include "absl/base/const_init.h"
30#include "absl/base/thread_annotations.h"
31#include "absl/container/flat_hash_map.h"
32#include "absl/container/node_hash_map.h"
33#include "absl/log/check.h"
34#include "absl/log/log.h"
35#include "absl/status/status.h"
36#include "absl/status/statusor.h"
37#include "absl/strings/str_cat.h"
38#include "absl/strings/string_view.h"
39#include "absl/synchronization/mutex.h"
40#include "absl/types/span.h"
41#include "tensorflow/compiler/jit/device_compilation_profiler.h"
42#include "tensorflow/compiler/jit/device_compiler.h"
43#include "tensorflow/compiler/jit/encapsulate_subgraphs_pass.h"
44#include "tensorflow/compiler/jit/flags.h"
45#include "tensorflow/compiler/jit/pjrt_compile_util.h"
46#include "tensorflow/compiler/jit/variable_info.h"
47#include "tensorflow/compiler/jit/variable_info_util.h"
48#include "tensorflow/compiler/jit/xla_activity.pb.h"
49#include "tensorflow/compiler/jit/xla_activity_listener.h"
50#include "tensorflow/compiler/jit/xla_compile_util.h"
51#include "tensorflow/compiler/jit/xla_compiler_options_util.h"
52#include "tensorflow/compiler/jit/xla_host_recv_device_context.h"
53#include "tensorflow/compiler/jit/xla_host_send_device_context.h"
54#include "tensorflow/compiler/jit/xla_launch_util.h"
55#include "tensorflow/compiler/jit/xla_platform_info.h"
56#include "tensorflow/compiler/tf2xla/tf2xla_util.h"
57#include "tensorflow/compiler/tf2xla/xla_compiler.h"
58#include "tensorflow/compiler/tf2xla/xla_helpers.h"
852:49… a new ExecutableClosure, even
853 // if it didn't have to compile the cluster because of a compilation-cache
854 // hit. This is because we at least ne …