No, TfRecordis different thing compared to DataLoader.
Tf.data 326 is counter part to DataLoader.
Both of them can read different format of data (numpy, text, path_to_images)
TfRecord is much more like DataBase which you can create before training and read from it during it. Main advantage is that you are not reading many small files but several bigger files (it should be faster). And TfRecord is special structure supported by TF.
In PyTorch you can use any known DataBase for reading the data. It up to you what you would choose.