cluster_tf.cc
imports tensorflow/core/platform/error_payloads.himports tensorflow/core/platform/errors.h
SHA-2569267704e8f7711871c99d1bd34eacf51f25aee8a93f1948e53c6ec29d3cea300
MaleculeMd(In₆)
Evidence
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 …
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/v2/cluster_tf.h"
17
18#include <string>
19
20#include "absl/log/log.h"
21#include "absl/status/status.h"
22#include "llvm/ADT/STLFunctionalExtras.h"
23#include "llvm/ADT/StringRef.h"
24#include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project
25#include "mlir/IR/BuiltinOps.h" // from @llvm-project
26#include "mlir/Pass/PassManager.h" // from @llvm-project
27#include "mlir/Pass/PassRegistry.h" // from @llvm-project
28#include "mlir/Support/LogicalResult.h" // from @llvm-project
29#include "tensorflow/compiler/mlir/tensorflow/ir/tf_dialect.h"
30#include "tensorflow/compiler/mlir/tensorflow/transforms/passes.h"
31#include "tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h"
32#include "tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.h"
33#include "tensorflow/compiler/mlir/tensorflow/utils/error_util.h"
34#include "tensorflow/compiler/mlir/tf2xla/api/v2/device_type.pb.h"
35#include "tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.h"
36#include "tensorflow/compiler/mlir/tf2xla/internal/logging_hooks.h"
37#include "tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h"
38#include "xla/tsl/platform/errors.h"
39#include "tensorflow/core/framework/metrics.h"
40#include "tensorflow/core/platform/error_payloads.h"
41#include "tensorflow/core/platform/errors.h"
42#include "tensorflow/core/platform/stacktrace.h"
43#include "tensorflow/core/platform/status.h"
44#include "tensorflow/core/util/debug_data_dumper.h"
45#include "tsl/platform/error_logging.h"
46
47namespace tensorflow {
⋯6 lines
63:31… x = "tf_xla_bridge_v2") {
64 // Explicitly check that the TensorFlow dialect can constant fold ops.
65 // Constant folding is essential for the bridge …