-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[CINN] Add pass for broadcast tree to condition op in dynamic shape #60828
[CINN] Add pass for broadcast tree to condition op in dynamic shape #60828
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
… broadcast_tree_to_cond_op
… broadcast_tree_to_cond_op
output_types of JitKernelOp come from compiled data.
… broadcast_tree_to_cond_op
…into broadcast_tree_to_cond_op
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.
LGTM overrall
VLOG(4) << "Run func_args_ size: " << func_args_.size(); | ||
for (const auto& args : func_args_) { | ||
VLOG(4) << " args type_code: " << args.type_code(); | ||
} |
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.
VLOG(4) << "Run func_args_ size: " << func_args_.size(); | |
for (const auto& args : func_args_) { | |
VLOG(4) << " args type_code: " << args.type_code(); | |
} | |
if (VLOG_IS_ON(4)) { | |
VLOG(4) << "Run func_args_ size: " << func_args_.size(); | |
for (const auto& args : func_args_) { | |
VLOG(4) << " args type_code: " << args.type_code(); | |
} | |
} |
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.
已修改,thx~
@@ -88,6 +91,11 @@ class CinnJitInstruction::FnPtrImpl { | |||
sizeof(int32_t*))); | |||
} | |||
|
|||
VLOG(4) << "InferShape func_args_ size: " << func_args_.size(); |
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.
同上
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.
已修改
std::ostream& operator<<(std::ostream& os, const BroadcastTree& tree); | ||
|
||
} // namespace cinn::common |
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.
运算符重载为什么要删了呢?
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.
BroadcastTree有多个构造接口,与其他输出流重载函数会出现编译冲突
} | ||
|
||
std::vector<::pir::Value> output_values; | ||
for (auto* op : this->ops) { |
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.
返回值 output_values 是个 vector,,这里似乎要从 group_ops_set
里面遍历,否则 output_values 里面可能有重复值
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.
ops带有图的拓扑结构,理论上不会出现重复op
… broadcast_tree_to_cond_op
… broadcast_tree_to_cond_op
PR types
Others
PR changes
Others
Description
Pcard-73448
Add pass for broadcast tree to condition op in dynamic shape.