Replies: 5 comments
-
|
what are batch, m, n, k in your shapes? |
Beta Was this translation helpful? Give feedback.
-
|
yeah sorry, this is conv2d not matmul. So the data shape is If the source tensor is a bias of shape |
Beta Was this translation helpful? Give feedback.
-
|
so different batch wants to load different vector? |
Beta Was this translation helpful? Give feedback.
-
|
Yes conceptually, but rather than adding a special case logic to handle such case, I wonder if it is a good idea to support general broadcasting math like the rest of numerical computing framework like numpy / pytorch / tvm etc already do. |
Beta Was this translation helpful? Give feedback.
-
|
instead of setting all strides to 0, you could set it them as (320, 0, 0). So, nothing happens when H or W increase, but when N increases, you will move to the next batch. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a matmul config where the result of A * B is of shape
(2, 64, 64, 320)and the C tensor is of shape(2, 1, 1, 320). I want to doA * B + Cwith such shapes, where the addition has the broadcasting semantics. Such input appears in Stable Diffusion. This pattern appears as part of a residual block, so I want to be able to do this usingDefaultConv2dFpropWithBroadcast+LinearCombinationResidualBlock.Does CUTLASS support such general broadcast addition for the source tensor? I quickly tried but it fails at runtime or yields garbage output.
@hwu36
Beta Was this translation helpful? Give feedback.
All reactions