You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to convert float16 to float32 using inbuilt functions however getting same output:
constarray=newFloat16Array([1.0,1.1,1.2,1.3]);for(constvalueofarray){// 1, 1.099609375, 1.2001953125, 1.2998046875console.log(value);}constfloat32Array=newFloat32Array(array.length);// Iterate over the Float16Array and convert each element to Float32for(leti=0;i<array.length;i++){float32Array[i]=array[i];}// Now float32Array contains the converted valuesconsole.log("f32:",float32Array);}
The text was updated successfully, but these errors were encountered:
I am trying to convert float16 to float32 using inbuilt functions however getting same output:
The text was updated successfully, but these errors were encountered: