Commit 603097b
OneDNN MaxPooling: reduce memory use for inference path (#52728)
Summary:
For OneDNN MaxPooling training, it will save indices as a workspace for backward, but for inference, indices are not necessary, this PR will make check to avoid saving indices to reduce memory use for inference path.
Pull Request resolved: #52728
Reviewed By: jbschlosser
Differential Revision: D27062435
Pulled By: VitalyFedyunin
fbshipit-source-id: 9e70268a8ba491a7914b980079c0945d753cd4f31 parent 2c55797 commit 603097b
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
| |||
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
262 | | - | |
| 272 | + | |
263 | 273 | | |
264 | 274 | | |
265 | 275 | | |
| |||
0 commit comments