You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, thanks for the cool dataset!
I am trying to use it in tensorflow and have come across the following problem:
Newer versions of keras (the one shipped with tf 2.4) don't seem to include HDF5Matrix anymore, and when using older code I get a warning referring me to the new HDF5 functionality in tensorflow I/O: https://www.tensorflow.org/io/api_docs/python/tfio/v0/IODataset#from_hdf5
However, trying to use train_dataset = tfio.v0.IODataset.from_hdf5(xpath, '/camelyonpatch_level_2_split_train_x', tf.int64)
I get the following error: tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index 0 of dimension 0 out of bounds. [Op:StridedSlice] name: IOFromHDF5/HDF5IODataset/strided_slice/
Any ideas why this is? Could it be the file itself that doesn't come in the right shape?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi all, thanks for the cool dataset!
I am trying to use it in tensorflow and have come across the following problem:
Newer versions of keras (the one shipped with tf 2.4) don't seem to include HDF5Matrix anymore, and when using older code I get a warning referring me to the new HDF5 functionality in tensorflow I/O:
https://www.tensorflow.org/io/api_docs/python/tfio/v0/IODataset#from_hdf5
However, trying to use
train_dataset = tfio.v0.IODataset.from_hdf5(xpath, '/camelyonpatch_level_2_split_train_x', tf.int64)
I get the following error:
tensorflow.python.framework.errors_impl.InvalidArgumentError: slice index 0 of dimension 0 out of bounds. [Op:StridedSlice] name: IOFromHDF5/HDF5IODataset/strided_slice/
Any ideas why this is? Could it be the file itself that doesn't come in the right shape?
Thanks!
The text was updated successfully, but these errors were encountered: