Skip to content
Snippets Groups Projects
Commit 351b5538 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Task #11550: H5parm: store weights in single precision, fix underflow

parent 98a19ec5
No related branches found
No related tags found
No related merge requests found
......@@ -125,12 +125,15 @@ namespace LOFAR {
}
// Add weights
// Do not use half float data type because typical weights range can be 1.e-14
/*
hid_t halffloat = H5Tcopy(H5T_IEEE_F32BE);
H5Tset_fields(halffloat, 15, 10, 5, 0, 10);
H5Tset_size(halffloat, 2);
H5Tset_ebias(halffloat, 15);
H5Tlock(halffloat);
H5::DataSet weightset = createDataSet("weight", H5::DataType(halffloat),
*/
H5::DataSet weightset = createDataSet("weight", H5::PredType::IEEE_F32LE,
dataspace);
// If weights are empty, write ones everywhere
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment