Skip to content

Commit 54131f1

Browse files
Fix BF16 conv_transpose2d using wrong kernel on Metal (huggingface#3279)
* Changed CONVT1D_OP to CONVT2D_OP for conv_transpose2d_bf16 * removing the test: the cause of the bug is so apparent.
1 parent db3d5d9 commit 54131f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

candle-metal-kernels/src/metal_src/conv.metal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,5 +713,5 @@ CONVT1D_OP(bfloat, float, conv_transpose1d_bf16)
713713
CONVT2D_OP(float, float, conv_transpose2d_f32)
714714
CONVT2D_OP(half, float, conv_transpose2d_f16)
715715
#if defined(__HAVE_BFLOAT__)
716-
CONVT1D_OP(bfloat, float, conv_transpose2d_bf16)
716+
CONVT2D_OP(bfloat, float, conv_transpose2d_bf16)
717717
#endif

0 commit comments

Comments
 (0)