Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 624401549
  • Loading branch information
tensorflower-gardener committed Apr 13, 2024
1 parent 177a5ad commit 7cccea5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion third_party/xla/xla/service/constant_value.cc
Expand Up @@ -22,7 +22,7 @@ namespace xla {
absl::StatusOr<ConstantValue> ConstantValue::FromLiteral(
const Literal& literal) {
CHECK_EQ(literal.shape().dimensions_size(), 0) << "Expected scalar literal";
return primitive_util::PrimitiveTypeSwitch<StatusOr<ConstantValue>>(
return primitive_util::PrimitiveTypeSwitch<absl::StatusOr<ConstantValue>>(
[&](auto primitive_type_constant) -> absl::StatusOr<ConstantValue> {
if constexpr (primitive_util::IsIntegralType(primitive_type_constant)) {
return ConstantValue(
Expand Down
4 changes: 2 additions & 2 deletions third_party/xla/xla/service/hlo_runner.cc
Expand Up @@ -525,7 +525,7 @@ absl::StatusOr<std::vector<Literal>> HloRunner::ExecuteReplicated(
argument_buffer_slices));
} else {
absl::Mutex mutex;
std::vector<StatusOr<ScopedShapedBuffer>> thread_results(
std::vector<absl::StatusOr<ScopedShapedBuffer>> thread_results(
options.num_replicas);
{
VLOG(1) << "Creating thread pool for " << options.num_replicas
Expand Down Expand Up @@ -581,7 +581,7 @@ absl::StatusOr<std::vector<Literal>> HloRunner::ExecuteReplicated(
TF_RET_CHECK(options.use_threads);
std::vector<ScopedShapedBuffer> results;
absl::Mutex mutex;
std::vector<StatusOr<ScopedShapedBuffer>> thread_results(
std::vector<absl::StatusOr<ScopedShapedBuffer>> thread_results(
options.num_replicas);
{
VLOG(1) << "Creating thread pool for " << options.num_replicas
Expand Down

0 comments on commit 7cccea5

Please sign in to comment.