Remove StatusOr from error_util.
It's currently unused and it's discouraged to use "using" directives in the header. PiperOrigin-RevId: 284087238 Change-Id: I28ee8091ae9ed95b37842c84b4338163a4663d86
This commit is contained in:
parent
8d16240b34
commit
6a1cbfd8d8
@ -567,7 +567,6 @@ cc_library(
|
||||
hdrs = ["utils/error_util.h"],
|
||||
deps = [
|
||||
"//tensorflow/core:lib",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
"@llvm//:support",
|
||||
"@local_config_mlir//:IR",
|
||||
],
|
||||
|
@ -22,13 +22,11 @@ limitations under the License.
|
||||
#include "mlir/IR/Location.h" // TF:local_config_mlir
|
||||
#include "mlir/IR/MLIRContext.h" // TF:local_config_mlir
|
||||
#include "tensorflow/core/lib/core/status.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
|
||||
// Error utilities for MLIR when interacting with code using Status returns.
|
||||
namespace mlir {
|
||||
|
||||
// TensorFlow's Status is used for error reporting back to callers.
|
||||
using stream_executor::port::StatusOr;
|
||||
using tensorflow::Status;
|
||||
|
||||
// Diagnostic handler that collects all the diagnostics reported and can produce
|
||||
|
@ -408,6 +408,7 @@ cc_library(
|
||||
"//tensorflow/compiler/xla/client:xla_builder",
|
||||
"//tensorflow/compiler/xla/client/lib:matrix",
|
||||
"//tensorflow/compiler/xla/service:hlo",
|
||||
"//tensorflow/stream_executor/lib",
|
||||
"@llvm//:support",
|
||||
"@local_config_mlir//:Analysis",
|
||||
"@local_config_mlir//:IR",
|
||||
|
@ -40,7 +40,9 @@ limitations under the License.
|
||||
#include "tensorflow/compiler/xla/service/hlo_module.h"
|
||||
#include "tensorflow/compiler/xla/status_macros.h"
|
||||
#include "tensorflow/compiler/xla/xla_data.pb.h"
|
||||
#include "tensorflow/stream_executor/lib/statusor.h"
|
||||
|
||||
using ::stream_executor::port::StatusOr;
|
||||
using ::tensorflow::int16;
|
||||
using ::tensorflow::int32;
|
||||
using ::tensorflow::int64;
|
||||
|
Loading…
Reference in New Issue
Block a user