Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 98a4236

Browse files
author
Hao Jin
committed
address code reviews: get rid of unnecessary checks
1 parent a60d44b commit 98a4236

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/operator/l2_normalization.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ Operator* CreateOp<cpu>(L2NormalizationParam param, int dtype) {
3737
// DO_BIND_DISPATCH comes from static_operator_common.h
3838
Operator* L2NormalizationProp::CreateOperatorEx(Context ctx, std::vector<TShape> *in_shape,
3939
std::vector<int> *in_type) const {
40-
std::vector<TShape> out_shape, aux_shape;
41-
std::vector<int> out_type, aux_type;
42-
CHECK(InferType(in_type, &out_type, &aux_type));
43-
CHECK(InferShape(in_shape, &out_shape, &aux_shape));
4440
DO_BIND_DISPATCH(CreateOp, param_, in_type->at(0));
4541
}
4642

0 commit comments

Comments
 (0)