File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,12 @@ constexpr constant static float kvalues_iq4nl_f[16] = {
19
19
// NOTE: this is not dequantizing - we are simply fitting the template
20
20
template <typename type4x4>
21
21
void dequantize_f32 (device const float4x4 * src, short il, thread type4x4 & reg) {
22
- float4x4 temp = *(((device float4x4 *)src));
23
- for (int i = 0 ; i < 16 ; i++){
24
- reg[i/4 ][i%4 ] = temp[i/4 ][i%4 ];
25
- }
22
+ reg = (type4x4)(*src);
26
23
}
27
24
28
25
template <typename type4x4>
29
26
void dequantize_f16 (device const half4x4 * src, short il, thread type4x4 & reg) {
30
- half4x4 temp = *(((device half4x4 *)src));
31
- for (int i = 0 ; i < 16 ; i++){
32
- reg[i/4 ][i%4 ] = temp[i/4 ][i%4 ];
33
- }
27
+ reg = (type4x4)(*src);
34
28
}
35
29
36
30
template <typename type4x4>
You can’t perform that action at this time.
0 commit comments