FZJ-JSC / JuML

3 stars 1 forks source link

Dataset testcase which checks all the values in the resulting array #21

Closed mricherzhagen closed 8 years ago

mricherzhagen commented 8 years ago

Our Dataset Testcases are not enough. This Testcase shows that Dataset.load_equal_chunks reads the data in the wrong format.

af::print("data", Dataset.data()) results in:

[3 5 1 1]
         0          0          0          1          1 
         1          2          2          2          3 
         3          3          4          4          4

with this File:

GROUP "/" {
   DATASET "testset" {
      DATATYPE  H5T_STD_I32LE
      DATASPACE  SIMPLE { ( 5, 3 ) / ( 5, 3 ) }
      DATA {
      (0,0): 0, 0, 0,
      (1,0): 1, 1, 1,
      (2,0): 2, 2, 2,
      (3,0): 3, 3, 3,
      (4,0): 4, 4, 4
      }
   }
}