From eec1ac8638e4f5d447cb99276df6ec4c816d88c6 Mon Sep 17 00:00:00 2001 From: Kexin Zhao Date: Wed, 16 May 2018 16:46:30 -0700 Subject: [PATCH] fix warning --- paddle/fluid/inference/tensorrt/convert/op_converter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/inference/tensorrt/convert/op_converter.h b/paddle/fluid/inference/tensorrt/convert/op_converter.h index abc9ebf472..1cd3ed9a00 100644 --- a/paddle/fluid/inference/tensorrt/convert/op_converter.h +++ b/paddle/fluid/inference/tensorrt/convert/op_converter.h @@ -49,7 +49,7 @@ class OpConverter { // convert fluid block to tensorrt network void ConvertBlock(const framework::proto::BlockDesc& block, TensorRTEngine* engine) { - for (size_t i = 0; i < block.ops_size(); i++) { + for (int i = 0; i < block.ops_size(); i++) { const auto& op = block.ops(i); OpConverter::Run(op, engine); } -- GitLab