Benign repos Download

cluster_tf.cc

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

Evidence

apache web server name lines 1–10
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 …
imports tensorflow/core/platform/errors.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/compiler/mlir/tf2xla/api/v1/cluster_tf.h"
17
18#include <memory>
19#include <string>
20
21#include "absl/log/log.h"
22#include "absl/status/status.h"
23#include "llvm/ADT/STLFunctionalExtras.h"
24#include "llvm/ADT/StringRef.h"
25#include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project
26#include "mlir/IR/BuiltinOps.h" // from @llvm-project
27#include "mlir/IR/Visitors.h" // from @llvm-project
28#include "mlir/Pass/PassManager.h" // from @llvm-project
29#include "mlir/Pass/PassRegistry.h" // from @llvm-project
30#include "mlir/Support/LogicalResult.h" // from @llvm-project
31#include "tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h"
32#include "tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/lower_cluster_to_runtime_ops.h"
33#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
34#include "tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h"
35#include "tensorflow/compiler/mlir/tensorflow/utils/data_dumper_logger_config.h"
36#include "tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h"
37#include "tensorflow/compiler/mlir/tensorflow/utils/error_util.h"
38#include "tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor.h"
39#include "tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.h"
40#include "tensorflow/compiler/mlir/tf2xla/internal/inference/inference_passes.h"
41#include "tensorflow/compiler/mlir/tf2xla/internal/logging_hooks.h"
42#include "tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h"
43#include "xla/tsl/framework/device_type.h"
44#include "xla/tsl/platform/errors.h"
45#include "tensorflow/core/framework/metrics.h"
46#include "tensorflow/core/platform/errors.h"
47#include "tensorflow/core/platform/stacktrace.h"
48#include "tensorflow/core/platform/status.h"
49#include "tensorflow/core/tpu/tpu_defs.h"
50#include "tensorflow/core/util/debug_data_dumper.h"
51#include "tsl/platform/error_logging.h"
52
53namespace tensorflow {
⋯5 lines
English function-word token "have" lines 72–75
72:54… AttributesPass());
73 // Guarantee all functions have one use, which enables more exact shape
74 // inference.
75 pm.addPass(mlir::TF::CreateGuaranteeA …
English function-word token "that" lines 93–95
93:31… x = "tf_xla_bridge_v1") {
94 // Explicitly check that the TensorFlow dialect can constant fold ops.
95 // Constant folding is essential for the bridge …

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.