FastDeploy icon indicating copy to clipboard operation
FastDeploy copied to clipboard

如何给tensorrt添加shape

Open guoyunqingyue opened this issue 2 years ago • 1 comments

使用c#api的fastdeploy,如何使用TensorRT? 目前使用的代码: RuntimeOption runtimeoption = new RuntimeOption(); runtimeoption.UseGpu(); runtimeoption.UseTrtBackend(); runtimeoption.EnablePaddleToTrt(); runtimeoption.EnablePaddleTrtCollectShape(); fastdeploy.vision.classification.PaddleClasModel model = new fastdeploy.vision.classification.PaddleClasModel(model_file, params_file, config_file, runtimeoption, ModelFormat.PADDLE); 运行会报错:

捕获 显然是需要给tensorrt添加shape,但c#中没有如同c++中的SetTrtshape接口

guoyunqingyue avatar Aug 01 '23 08:08 guoyunqingyue

已收到反馈,后续可能需要补齐接口

rainyfly avatar Feb 06 '24 09:02 rainyfly