Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 628746412
  • Loading branch information
tensorflower-gardener committed Apr 30, 2024
1 parent 37a74d8 commit 39c8de6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
1 change: 0 additions & 1 deletion tensorflow/compiler/mlir/tfrt/BUILD
Expand Up @@ -350,7 +350,6 @@ cc_library(
"translate/import_model.h",
],
visibility = [
# copybara:uncomment "//learning/brain/experimental/tfrt/visualization:__pkg__",
"//tensorflow/compiler/mlir/tfrt/tests/saved_model:__pkg__",
"//tensorflow/compiler/mlir/tfrt/transforms/mlrt:__pkg__",
"//tensorflow/core/tfrt/graph_executor:__pkg__",
Expand Down
Expand Up @@ -73,7 +73,7 @@ class RandomDatasetOp::Dataset : public DatasetBase {
Status s = resource_mgr_->Delete<SeedGeneratorManager>(
resource_handle_.container(), resource_handle_.name());
if (!s.ok()) {
LOG(WARNING) << "Failed to delete RNG resource: " << s.ToString();
LOG(WARNING) << "Failed to delete RNG resource: " << s;
}
}
}
Expand Down
Expand Up @@ -919,7 +919,7 @@ class SnapshotDatasetOp : public UnaryDatasetOpKernel {
snapshot_util::DumpDatasetGraph(ctx->env(), path, hash, &graph_def);
if (!dump_status.ok()) {
LOG(WARNING) << "Unable to write graphdef to disk, error: "
<< dump_status.ToString();
<< dump_status;
}

std::string graph_hash =
Expand Down Expand Up @@ -1557,7 +1557,7 @@ class SnapshotDatasetOp : public UnaryDatasetOpKernel {
}
curr_filenames_[i] = GetNextFilename();
} else {
LOG(ERROR) << "Encountered an error: " << s.ToString();
LOG(ERROR) << "Encountered an error: " << s;
BufferElement elem;
elem.status = s;
mutex_lock l(mu_);
Expand Down Expand Up @@ -2099,7 +2099,7 @@ class SnapshotDatasetOp : public UnaryDatasetOpKernel {
kCurrentVersion, dataset()->output_dtypes(), &writer);
if (!s.ok()) {
LOG(ERROR) << "Creating " << snapshot_data_filename
<< " failed: " << s.ToString();
<< " failed: " << s;
mutex_lock l(mu_);
snapshot_failed_ = true;
cond_var_.notify_all();
Expand All @@ -2112,8 +2112,7 @@ class SnapshotDatasetOp : public UnaryDatasetOpKernel {
ProcessOneElement(env, &bytes_written, &snapshot_data_filename,
&writer, &end_of_processing);
if (!s.ok()) {
LOG(INFO) << "Error while writing snapshot data to disk: "
<< s.ToString();
LOG(INFO) << "Error while writing snapshot data to disk: " << s;
mutex_lock l(mu_);
snapshot_failed_ = true;
cond_var_.notify_all();
Expand Down
Expand Up @@ -43,7 +43,6 @@ namespace {

using tsl::mutex;
using tsl::mutex_lock;
using tsl::OkStatus;
using tsl::Status;
using tsl::strings::StrCat;

Expand Down

0 comments on commit 39c8de6

Please sign in to comment.