Benign repos Download

mlir_xla_op_kernel.cc

imports tensorflow/core/platform/errors.himports tensorflow/core/platform/refcount.h
SHA-256aebbf947f8e6c0be33cdb35bcfcc8aa0989c5eac3abdf236bc943709bba792b0
MaleculeMd(In₅)

Evidence

apache web server name lines 1–10
1/* Copyright 2021 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/errors.h lines 11–51
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/tf2xla/mlir_xla_op_kernel.h"
17
18#include <string>
19
20#include "absl/status/status.h"
21#include "absl/strings/str_cat.h"
22#include "llvm/ADT/DenseSet.h"
23#include "llvm/ADT/SmallVector.h"
24#include "mlir/IR/MLIRContext.h" // from @llvm-project
25#include "tensorflow/compiler/jit/xla_compile_util.h"
26#include "tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h"
27#include "tensorflow/compiler/mlir/utils/array_container_utils.h"
28#include "tensorflow/compiler/tf2xla/xla_compiler.h"
29#include "tensorflow/compiler/tf2xla/xla_expression.h"
30#include "tensorflow/compiler/tf2xla/xla_op_kernel.h"
31#include "tensorflow/compiler/tf2xla/xla_op_registry.h"
32#include "xla/hlo/builder/xla_builder.h"
33#include "tensorflow/core/framework/device.h"
34#include "tensorflow/core/framework/op_kernel.h"
35#include "tensorflow/core/framework/op_requires.h"
36#include "tensorflow/core/framework/resource_base.h"
37#include "tensorflow/core/framework/resource_mgr.h"
38#include "tensorflow/core/framework/types.pb.h"
39#include "tensorflow/core/platform/errors.h"
40#include "tensorflow/core/platform/refcount.h"
41#include "tensorflow/core/platform/status.h"
42#include "tsl/platform/errors.h"
43#include "tsl/platform/statusor.h"
44
45namespace tensorflow {
⋯6 lines
English function-word token "that" lines 74–77
74:53… ::Argument>& xla_args) {
75 // Collect arguments that are registered as CompileTimeConstantInput.
76 std::vector<int> registered_consts_vec;
77 TF_RETU …
English function-word token "have" lines 139–144
139:15… ted the XlaOpKernelContext argument's device to have type "
140 "Device.");
141 }
142
143 // Create a graph that wraps the kernel.
144 TF_ASSIGN_OR_RETUR …

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.