forked from apache/mxnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MXNET-497] fix bugs in MKLDNN operators to handle the kAddTo request (…
…apache#11129) * fix lint * requests added to opattr * comment out addto * can invalidate kAddTo request mkldarrays * revert adding kAddTo to invalidate * use copy of output instead of creating new array * convert output to default if fallback * do not make copy when init * copyex fallback copies to old array with kAddTo * change input mem desc to output mem desc if not equal * reorder memory in commitoutput * allocate temp memory * fix var names * create helper reorder function to handle diff format/shapes * fix typos * fix typos * remove unused code * fix param * fix header files * force input memory to output * reorder2default keeps pointer to mkldnn memory * pass reference * remove extra lines * do not get raw mem from ptr * remove isView check * fallback writes back to output * remove redundant line * remove commented out code * use fallback in copy (refactor) * remove unused header * fix lint * reorder2default only if mkldnn flag * only reorder if mkldnn * does not assume 1 output * sum compares input and output shape * compare address and pd in sum * refactor mkldnnsum * fix const param * fix header * improve control flow when setting output blob * fix merge * remove kaddto comment * add reqests to operators * fix spacing * do sum in place * fix conditionals * remove redundant reqs * use wait to read all * fix lint * create multiple outputs * create multiple copies for kaddto * retrigger * retriggrer * retrigger * retrigger * another retrigger * retrigger * retrigger * another another retrigger * fix merge * retrigger * add kAddto to relu op * retrigger
- Loading branch information
1 parent
3c21216
commit 4520454
Showing
6 changed files
with
140 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters