You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw a testcase in test-backend-ops to test bcast with ADD, MUL and DIV. As far as I know, bcast only works for different dims, and all dims should be same or 1. But this case cast is adding tensor a(16,10,10,10) with b(32,10,10,10). I read the source code, but can't undersand clearly, could some one tell me how it works?
Does it bcast tensor a(16,10,10,10) to (32,10,10,10), and copy first "0-16" to "17-31"?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I saw a testcase in test-backend-ops to test bcast with ADD, MUL and DIV. As far as I know, bcast only works for different dims, and all dims should be same or 1. But this case cast is adding tensor a(16,10,10,10) with b(32,10,10,10). I read the source code, but can't undersand clearly, could some one tell me how it works?
Does it bcast tensor a(16,10,10,10) to (32,10,10,10), and copy first "0-16" to "17-31"?
Beta Was this translation helpful? Give feedback.
All reactions