-
Notifications
You must be signed in to change notification settings - Fork 0
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
Lw pir trt #7
Lw pir trt #7
Conversation
…v elementwise_sub elementwise_div elementwise_mod的maker和单测
pir::Value y = op.operand_source(1); | ||
auto x_dtype = pir::GetDataTypeFromValue(x); | ||
auto y_dtype = pir::GetDataTypeFromValue(y); | ||
if(x_dtype.isa<pir::BoolType>()){ |
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.
这里也判断下y_dtype
pir::Value y = op.operand_source(1); | ||
auto x_dtype = pir::GetDataTypeFromValue(x); | ||
auto y_dtype = pir::GetDataTypeFromValue(y); | ||
if(x_dtype.isa<pir::BoolType>()){ |
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.
同上
auto x_dtype = pir::GetDataTypeFromValue(x); | ||
auto y_dtype = pir::GetDataTypeFromValue(y); | ||
if(x_dtype.isa<pir::BoolType>()){ | ||
VLOG(3) << "elementwise_pow do not support boolean datatype."; |
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.
这里把x_dtype.isa的两个合并成一个,并检查y_dtype
pir::Value y = op.operand_source(1); | ||
auto x_dtype = pir::GetDataTypeFromValue(x); | ||
auto y_dtype = pir::GetDataTypeFromValue(y); | ||
if(x_dtype.isa<pir::BoolType>()){ |
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.
同上
pir::Value y = op.operand_source(1); | ||
auto x_dtype = pir::GetDataTypeFromValue(x); | ||
auto y_dtype = pir::GetDataTypeFromValue(y); | ||
if(x_dtype.isa<pir::BoolType>()){ |
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.
同上
from paddle.pir.core import create_parameter | ||
|
||
|
||
class TestTRTPattern(PassTest): |
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.
单测暂时改成pr#67054这种形式,重新提吧
PR types
PR changes
Description