-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[oneDNN ] disabling more ops caching #34830
[oneDNN ] disabling more ops caching #34830
Conversation
- fix in compilation - compilation fix - transpose caching disabled - compilation fix - more compilation fixes - sum caching disabled - compilation fix
Thanks for your contribution! |
this->dev_ctx_.SetBlob(key_pd, this->fwd_pd_); | ||
} | ||
this->fwd_pd_.reset( | ||
new dnnl::sum::primitive_desc(dst_md, scales, srcs_md, this->engine_)); |
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.
You are using "new" here. Is it later destroyed anywhere?
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.
this->fwd_pd_ is a shared pointer so when reference count will get to zero then deallocation of of object will happen . So we do not have to worry about memory leaks.
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.
Ok, thanks. I didn't see that it is a smart pointer
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
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 types
Bug fixes
PR changes
OPs
Describe
Recently oneDNN introduced caching of its elements: primitives and primitives descriptors so we can disable partially our own caching. This PR disabled caching of LRN, Transpose, Layer Norm and Sum oneDNN ops