Skip to content

Commit 9845028

Browse files
malfetAnantGulati
authored andcommitted
[MPS] Enable bucketization for bfloat16 (#136983)
By simply adding explicit instantiation Tested in #136987 Pull Request resolved: #136983 Approved by: https://github.com/Skylion007 ghstack dependencies: #136981, #136982
1 parent 2045b75 commit 9845028

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aten/src/ATen/native/mps/operations/Bucketization.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ kernel void searchsorted(
183183
REGISTER_SEARCHSORTED_OP(float, long);
184184
REGISTER_SEARCHSORTED_OP(half, int);
185185
REGISTER_SEARCHSORTED_OP(half, long);
186+
#if __METAL_VERSION__ >= 310
187+
REGISTER_SEARCHSORTED_OP(bfloat, int);
188+
REGISTER_SEARCHSORTED_OP(bfloat, long);
189+
#endif
186190
REGISTER_SEARCHSORTED_OP(char, int);
187191
REGISTER_SEARCHSORTED_OP(char, long);
188192
REGISTER_SEARCHSORTED_OP(uchar, int);

0 commit comments

Comments
 (0)