FastDeploy
FastDeploy copied to clipboard
如何给tensorrt添加shape
使用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接口
已收到反馈,后续可能需要补齐接口