CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[xpu] pir conv2d add pass #65304
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
[xpu] pir conv2d add pass #65304
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
e48a645
to
0565af9
Compare
class Conv2dAddXpuFusePattern : public paddle::drr::DrrPatternBase { | ||
private: | ||
bool enable_int8_; | ||
std::map<std::string, int> quant_post_type_; |
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::map<std::string, int> quant_post_type_; | |
const std::map<std::string, int>& quant_post_type_; |
public: | ||
explicit Conv2dAddXpuFusePattern( | ||
bool enable_int8, | ||
std::map<std::string, int> quant_post_type, |
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::map<std::string, int> quant_post_type, | |
const std::map<std::string, int>& quant_post_type, |
paddle/pir/src/pass/pass.cc
Outdated
@@ -11,13 +11,14 @@ | |||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
#include "glog/logging.h" |
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.
delete
paddle/pir/src/pass/pass.cc
Outdated
@@ -270,7 +270,9 @@ void PassInstrumentor::RunBeforeAnalysis(const std::string& name, | |||
void PassInstrumentor::RunAfterAnalysis(const std::string& name, | |||
TypeId id, | |||
Operation* op) { | |||
VLOG(6) << "kyf -- before check num_regions"; |
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.
delete
paddle/pir/src/pass/pass.cc
Outdated
if (op->num_regions() == 0) return; | ||
VLOG(6) << "kyf -- after checknum_regions"; |
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.
delete
d153682
to
bb529b9
Compare
a4dd00c
to
8b5a9a5
Compare
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
PR Category
Performance Optimization
PR Types
New features
Description
pir conv2d add pass