Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoke转tensorrt报错 #253

Closed
Yutong-gannis opened this issue Feb 20, 2023 · 4 comments
Closed

smoke转tensorrt报错 #253

Yutong-gannis opened this issue Feb 20, 2023 · 4 comments
Assignees

Comments

@Yutong-gannis
Copy link

Yutong-gannis commented Feb 20, 2023

E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
E0220 18:10:05.958732 58484 helper.h:114] 4: Output tensor tmp_21795 of type Float produced from output of incompatible type Bool
W0220 18:10:48.365917 58484 helper.h:110] Skipping tactic 0 due to Myelin error: Mismatched type for tensor tmp_21795', f32 vs. expected type:b.
E0220 18:10:48.366914 58484 helper.h:114] 10: [optimizer.cpp::nvinfer1::builder::`anonymous-namespace'::LeafCNode::computeCosts::2033] Error Code 10: Internal Error (Could not find any implementation for node {ForeignNode[equal (Output: tmp_21795)]}.)
E0220 18:10:48.366914 58484 helper.h:114] 2: [builder.cpp::nvinfer1::builder::Builder::buildSerializedNetwork::619] Error Code 2: Internal Error (Assertion engine != nullptr failed. )

好像有一些不支持的算子

@nepeplwu
Copy link
Collaborator

@Yutong-gannis 可以试试直接导出Paddle的模型后使用PaddleInference + TRT推理,参考https://github.com/PaddlePaddle/Paddle3D/tree/release/1.0/docs/models/smoke#python%E9%83%A8%E7%BD%B2

@nepeplwu nepeplwu self-assigned this Feb 23, 2023
@Yutong-gannis
Copy link
Author

@nepeplwu 我就是用的python infer.py --model_file /path/to/smoke.pdmodel --params_file /path/to/smoke.pdiparams --image /path/to/image --use_trt --dynamic_shape_file /path/to/shape_info.txt依然会报这个错

@perfectworld0415
Copy link

smoke.pdiparams 这个文件在哪里下载?model里面没有这个文件

@nepeplwu
Copy link
Collaborator

nepeplwu commented Feb 6, 2024

@Yutong-gannis 辛苦补充下完整的日志, @perfectworld0415 这个是通过动转静导出的模型,可以参考这个步骤https://github.com/PaddlePaddle/Paddle3D/tree/develop/configs/smoke#%E5%AF%BC%E5%87%BA%E9%83%A8%E7%BD%B2

@paddle-bot paddle-bot bot closed this as completed Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants