Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 628550342
  • Loading branch information
tensorflower-gardener committed Apr 27, 2024
1 parent c3325a8 commit f928d01
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
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 f928d01

Please sign in to comment.