How can I change a numpy ndarray into tfrecord? Should I change the numpy matrix into string. Which decoder should I use? slim.tfexample_decoder.Tensor(). I used np.array2string to change the matrix to string but I failed to convert the tfrecord file back to numpy array.