Skip to content

Commit c1a4876

Browse files
author
Wang
committed
Fix lint
1 parent c453b3a commit c1a4876

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

nnvm/src/top/tensor/elemwise.cc

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,10 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__equal_scalar__)
777777
"FTVMCompute", [](const NodeAttrs& attrs,
778778
const Array<Tensor>& inputs,
779779
const Array<Tensor>& out_info) {
780-
781780
Tensor out = topi::cast(
782781
binary_scalar_op(attrs, inputs[0],
783782
[](Expr x, Expr y) { return x == y; }),
784-
out_info[0]->dtype
785-
);
783+
out_info[0]->dtype);
786784
return Array<Tensor>{ out };
787785
})
788786
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);
@@ -799,8 +797,7 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__not_equal_scalar__)
799797
Tensor out = topi::cast(
800798
binary_scalar_op(attrs, inputs[0],
801799
[](Expr x, Expr y) { return x != y; }),
802-
out_info[0]->dtype
803-
);
800+
out_info[0]->dtype);
804801
return Array<Tensor>{ out };
805802
})
806803
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);
@@ -817,8 +814,7 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__greater_scalar__)
817814
Tensor out = topi::cast(
818815
binary_scalar_op(attrs, inputs[0],
819816
[](Expr x, Expr y) { return x > y; }),
820-
out_info[0]->dtype
821-
);
817+
out_info[0]->dtype);
822818
return Array<Tensor>{ out };
823819
})
824820
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);
@@ -835,8 +831,7 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__greater_equal_scalar__)
835831
Tensor out = topi::cast(
836832
binary_scalar_op(attrs, inputs[0],
837833
[](Expr x, Expr y) { return x >= y; }),
838-
out_info[0]->dtype
839-
);
834+
out_info[0]->dtype);
840835
return Array<Tensor>{ out };
841836
})
842837
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);
@@ -853,8 +848,7 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__less_scalar__)
853848
Tensor out = topi::cast(
854849
binary_scalar_op(attrs, inputs[0],
855850
[](Expr x, Expr y) { return x < y; }),
856-
out_info[0]->dtype
857-
);
851+
out_info[0]->dtype);
858852
return Array<Tensor>{ out };
859853
})
860854
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);
@@ -871,8 +865,7 @@ NNVM_REGISTER_ELEMWISE_BINARY_SCALAR(__less_equal_scalar__)
871865
Tensor out = topi::cast(
872866
binary_scalar_op(attrs, inputs[0],
873867
[](Expr x, Expr y) { return x <= y; }),
874-
out_info[0]->dtype
875-
);
868+
out_info[0]->dtype);
876869
return Array<Tensor>{ out };
877870
})
878871
.set_attr<nnvm::FGradient>("FGradient", MakeZeroGradNodes);

topi/include/topi/nn/l2_normalize.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inline Tensor l2_normalize(const Tensor& data,
3333
for (size_t i = 0; i < axis.size(); ++i) {
3434
int ax = topi::detail::GetConstInt(axis[i]);
3535
CHECK_LT(ax, data->shape.size()) <<
36-
"Axis " << ax << " exceeds input data dim " <<
36+
"Axis " << ax << " exceeds input data dim " <<
3737
data->shape.size();
3838
}
3939
auto input_shape = data->shape;

0 commit comments

Comments
 (0)