Skip to content

Commit f8c113b

Browse files
committed
Run linter
1 parent fe7c155 commit f8c113b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

torch_xla/csrc/ops/ops_xla_shape_fn.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ xla::Shape AddcmulOutputShape(const torch::lazy::Value& input,
133133
return InferOutputShape({GetXlaShape(input), GetXlaShape(t1), GetXlaShape(t2),
134134
GetXlaShape(value)},
135135
shape_fn);
136-
136+
}
137+
137138
xla::Shape AllDimOutputShape(const torch::lazy::Value& input, const int64_t dim,
138139
const bool keepdim) {
139140
auto lower_for_shape_fn =

torch_xla/csrc/ops/ops_xla_shape_fn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ xla::Shape AddcmulOutputShape(const torch::lazy::Value& input,
3838
const torch::lazy::Value& t1,
3939
const torch::lazy::Value& t2,
4040
const torch::lazy::Value& value);
41-
41+
4242
xla::Shape AllDimOutputShape(const torch::lazy::Value& input, const int64_t dim,
4343
const bool keepdim);
4444

torch_xla/csrc/reduction.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -415,10 +415,10 @@ xla::XlaOp BuildAll(xla::XlaOp input, absl::Span<const int64_t> dimensions,
415415
bool keep_reduced_dimensions) {
416416
const xla::Shape& shape = XlaHelpers::ShapeOfXlaOp(input);
417417
std::vector<int64_t> canonical_dimensions =
418-
torch::lazy::GetCanonicalDimensionIndices(
419-
xla::util::ToVector<int64_t>(dimensions), shape.rank());
420-
ReductionInfo rinfo =
421-
GetReductionInfo(input, shape, canonical_dimensions, keep_reduced_dimensions);
418+
torch::lazy::GetCanonicalDimensionIndices(
419+
xla::util::ToVector<int64_t>(dimensions), shape.rank());
420+
ReductionInfo rinfo = GetReductionInfo(input, shape, canonical_dimensions,
421+
keep_reduced_dimensions);
422422
xla::XlaOp init_value = xla::ConstantLiteral(
423423
input.builder(), xla::LiteralUtil::One(shape.element_type()));
424424
xla::PrimitiveType result_type =

0 commit comments

Comments
 (0)