We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea694bf commit e38f3ecCopy full SHA for e38f3ec
1 file changed
onnx/shape_inference/implementation.cc
@@ -239,7 +239,7 @@ void InferShapeForFunctionNode(
239
}
240
// Get a temporary initial value map
241
std::unordered_map<std::string, const TensorProto*> temp_initializersByName;
242
- for (int i = 0; i < (const int)(ctx.getNumInputs()); ++i) {
+ for (int i = 0; i < static_cast<int>(ctx.getNumInputs()); ++i) {
243
if (ctx.getInputData(i) != nullptr && i < func.input_size()) {
244
temp_initializersByName[func.input().Get(i)] = ctx.getInputData(i);
245
0 commit comments