Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
lsy323 committed Mar 7, 2024
1 parent 2ee8080 commit b8b4aaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torch_xla/csrc/runtime/pjrt_computation_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ std::unordered_map<int, int> build_index_map(
xla::Shape host_output_shape(xla::PjRtBuffer* buffer) {
xla::Shape shape = xla::ShapeUtil::MakeShape(
buffer->element_type(), buffer->logical_dimensions().value());
*shape.mutable_layout() = dynamic_cast<const xla::PjRtXlaLayout*>(buffer->layout().get())->xla_layout();
*shape.mutable_layout() =
dynamic_cast<const xla::PjRtXlaLayout*>(buffer->layout().get())
->xla_layout();

return xla::ShapeUtil::DeviceShapeToHostShape(shape);
}
Expand Down

0 comments on commit b8b4aaa

Please sign in to comment.