Skip to content

Commit

Permalink
Fix more liners
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwaketan committed Mar 6, 2024
1 parent c805109 commit e60f07b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions torch_xla/csrc/layout_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ xla::Shape MakeArrayShapeFromDimensions(
*layout_ptr);
}

bool tpu_layout_env =
runtime::sys_util::GetEnvBool("XLA_TPU_LAYOUT", true);
if (tpu_layout_env && dimensions.size() > 1 && hw_type == XlaDeviceType::TPU) {
bool tpu_layout_env = runtime::sys_util::GetEnvBool("XLA_TPU_LAYOUT", true);
if (tpu_layout_env && dimensions.size() > 1 &&
hw_type == XlaDeviceType::TPU) {
return MakeTpuShape(dimensions, dynamic_dimensions, type);
}
return MakeTorchTensorLayout(dimensions, dynamic_dimensions, type);
Expand Down

0 comments on commit e60f07b

Please sign in to comment.