The new implementation used tf.shape[0], which led to truncated TRCs if there were three independent TRCs since tf.shape[0] == 3 in that case
Use tf.shape[tf.ndims-1] instead. tf.shape[-1] does not appear to function correctly, likely due to cython having somewhat different indexing than python?
Also, the indexing into tf.data remains in bytes, so the size of the data items must be taken into account, and each TRC starts at jsizeof(dataitem)tf.shape[tf.ndims-1] - not sure if there's a cython equivalent for sizeof()?
The new implementation used tf.shape[0], which led to truncated TRCs if there were three independent TRCs since tf.shape[0] == 3 in that case
Use tf.shape[tf.ndims-1] instead. tf.shape[-1] does not appear to function correctly, likely due to cython having somewhat different indexing than python?
Also, the indexing into tf.data remains in bytes, so the size of the data items must be taken into account, and each TRC starts at jsizeof(dataitem)tf.shape[tf.ndims-1] - not sure if there's a cython equivalent for sizeof()?