Why I am getting DatasetV1Adapter return type instead of TensorSliceDataset for tf.data.Dataset.from_tensor_slices(X)
Based on their documentation, if you're using tf 2.0 (or below) it doesn't support TensorSliceDataset, and will give you DatasetV1Adapter https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/raw_ops
You will need TF 2.1.x and up