We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
short
int
long
1 parent c581981 commit f56c638Copy full SHA for f56c638
c10/metal/utils.h
@@ -29,6 +29,28 @@ struct vectypes<bfloat> {
29
using type2 = bfloat2;
30
};
31
#endif
32
+
33
+template <>
34
+struct vectypes<short> {
35
+ using type4 = short4;
36
+ using type3 = short3;
37
+ using type2 = short2;
38
+};
39
40
41
+struct vectypes<int> {
42
+ using type4 = int4;
43
+ using type3 = int3;
44
+ using type2 = int2;
45
46
47
48
+struct vectypes<long> {
49
50
51
52
53
54
} // namespace detail
55
56
template <typename T>
0 commit comments