Skip to content

Commit e38f3ec

Browse files
daquexianhouseroad
authored andcommitted
Remove redundant const (#1639)
1 parent ea694bf commit e38f3ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

onnx/shape_inference/implementation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void InferShapeForFunctionNode(
239239
}
240240
// Get a temporary initial value map
241241
std::unordered_map<std::string, const TensorProto*> temp_initializersByName;
242-
for (int i = 0; i < (const int)(ctx.getNumInputs()); ++i) {
242+
for (int i = 0; i < static_cast<int>(ctx.getNumInputs()); ++i) {
243243
if (ctx.getInputData(i) != nullptr && i < func.input_size()) {
244244
temp_initializersByName[func.input().Get(i)] = ctx.getInputData(i);
245245
}

0 commit comments

Comments
 (0)