Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 657484763
  • Loading branch information
tensorflower-gardener committed Jul 30, 2024
1 parent 96c1da0 commit fa2a074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tensorflow/core/util/sparse/sparse_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Status SparseTensor::IndicesValidHelper() const {
if (!valid) {
return errors::InvalidArgument(index,
" is out of bounds: need 0 <= index < [",
str_util::Join(shape_, ","), "]");
absl::StrJoin(shape_, ","), "]");
}
if (!increasing) {
return errors::InvalidArgument(
Expand Down
4 changes: 2 additions & 2 deletions tensorflow/core/util/sparse/sparse_tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ inline SparseTensor SparseTensor::Concat(
<< "All SparseTensors' shapes must match except on the concat dim. "
<< "Concat dim: " << primary_dim
<< ", mismatched shape at dim: " << cdim
<< ". Expecting shape like: [" << str_util::Join(final_shape, ",")
<< "] but saw shape: [" << str_util::Join(st_shape, ",") << "]";
<< ". Expecting shape like: [" << absl::StrJoin(final_shape, ",")
<< "] but saw shape: [" << absl::StrJoin(st_shape, ",") << "]";
}

// Update dimension of final shape
Expand Down

0 comments on commit fa2a074

Please sign in to comment.