Relative Content

Tag Archive for tensorflowtensorflow-datasets

Get file name passed from tf.data.Datasets.map

My dataset consist of a group of files (1.mat, 2.mat ….), and I need for each single file to concatenate the adjacent files. For example, for file 5.mat, I need to read files 0.mat to 10.mat and concatenate them in the last dimension. Moreover, each file has 5 subdatasets with dimensions 1000x120x1, 1000x200x1, 2000x200x1, 200x200x1. I need to concatenate 11 files to output 1000x120x11, , 1000x200x1, 2000x200x1, 200x200x1. As this dataset will be the input for the NN the dimension should be (None,1000,120,11).