Skip to content

Commit d661cb2

Browse files
committed
fix tidy
1 parent 0f04838 commit d661cb2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/layers/BinaryOpLayer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ void BinaryOpLayer::run_broadcast_impl(const Tensor& A, const Tensor& B,
119119
const auto& a_data = *A.as<ValueType>();
120120
const auto& b_data = *B.as<ValueType>();
121121
std::vector<ValueType> result(output_shape.count());
122-
const auto strides_A = get_strides(A.get_shape());
123-
const auto strides_B = get_strides(B.get_shape());
122+
const auto strides_a = get_strides(A.get_shape());
123+
const auto strides_b = get_strides(B.get_shape());
124124
const auto strides_output = get_strides(output_shape);
125125

126126
for (size_t i = 0; i < result.size(); ++i) {
127127
size_t a_idx = get_broadcasted_index(i, A.get_shape(), output_shape,
128-
strides_A, strides_output);
128+
strides_a, strides_output);
129129
size_t b_idx = get_broadcasted_index(i, B.get_shape(), output_shape,
130-
strides_B, strides_output);
130+
strides_b, strides_output);
131131
result[i] = apply_binary_op(a_data[a_idx], b_data[b_idx], op_);
132132
}
133133

0 commit comments

Comments
 (0)