Commit 19c25c4
Broadcast implementation in quantized_add (#10903)
Summary:
Pull Request resolved: #10903
This implementation introduces broadcast support in quantized_add by doing the following steps:
1) Compute the output tensor's shape using `torch.broadcast_shapes`
2) Implement the stride and offset logic for indexing into X and Y when using broadcast
3) Adds new tests for broadcast in quantized_add
Reviewed By: hsharma35
Differential Revision: D747734331 parent a63a648 commit 19c25c4
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | 337 | | |
| 338 | + | |
| 339 | + | |
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
| |||
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | 354 | | |
| 355 | + | |
359 | 356 | | |
360 | 357 | | |
361 | 358 | | |
| |||
0 commit comments