Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
alanwaketan committed Mar 27, 2024
1 parent 98197fa commit 1bca5ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_xla/csrc/xla_lower_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1258,11 +1258,11 @@ xla::XlaOp BuildTpuCustomCall(const std::vector<xla::XlaOp>& inputs,
std::vector<xla::Shape> input_shapes;
input_shapes.reserve(inputs.size());
for (const auto& input : inputs) {
auto shape = ShapeHelper::ShapeOfXlaOp(input);
xla::Shape shape = ShapeHelper::ShapeOfXlaOp(input);
input_shapes.push_back(MakeTorchTensorLayout(
shape.dimensions(), shape.dynamic_dimensions(), shape.element_type()));
}
auto output_shape_impl = MakeTorchTensorLayout(
xla::Shape output_shape_impl = MakeTorchTensorLayout(
output_shape.dimensions(), output_shape.dynamic_dimensions(),
output_shape.element_type());

Expand Down

0 comments on commit 1bca5ae

Please sign in to comment.