-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[Paddle Inference]Enhance the shape check of trt_embedding_eltwise_layernorm_fuse_pass,… #54861
[Paddle Inference]Enhance the shape check of trt_embedding_eltwise_layernorm_fuse_pass,… #54861
Conversation
… embedding_eltwise_layernorm_fuse_pass
你的PR提交成功,感谢你对开源项目的贡献! |
}, | ||
|
||
|
||
class TestEmbeddingEltwiseLayerNormFusePassNoBroadcast(PassAutoScanTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试elementwise_add需要广播的情况
from program_config import OpConfig, ProgramConfig, TensorConfig | ||
|
||
import paddle.inference as paddle_infer | ||
|
||
|
||
class TestEmbeddingEltwiseLayerNormFusePass(PassAutoScanTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只测试原生GPU的pass融合
|
||
def add_ignore_pass_case(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
去除了之前所有的ignore_check_case(跳过精度检查),对计算结果精度也进行检查
import paddle.inference as paddle_infer | ||
|
||
|
||
class TestEmbeddingEltwiseLayerNormFusePass(PassAutoScanTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只测试 trt pass
) | ||
|
||
|
||
class TestEmbeddingEltwiseLayerNormFusePassNoBroadcast(PassAutoScanTest): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试elementwise_add需要广播的情况
…yernorm_fuse_pass,… (PaddlePaddle#54861) * Enhance the shape check of trt_embedding_eltwise_layernorm_fuse_pass, embedding_eltwise_layernorm_fuse_pass
PR types
Others
PR changes
Others
Description
Pcard-71501