deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

Dataset handling + yet unagnostic details (Question/feature request)

Open jchwenger opened this issue 1 week ago • 0 comments

Hi there,

First off, congratulations on the new edition of Deep Learning With Python, it's good to see the material refreshed!

A quick question came up (I'm updating course material based on the book): currently I see that quite a few of the examples still use tf.data.Dataset (for convenience I suppose, and inheriting from the previous edition), which is perhaps the single major break remaining from the agnostic direction of Keras 3. I found PyDataset somewhere in the doc: this is meant to be used to make dataset handling backend-agnostic as well? If so, wouldn't that be a good addition to the book, instead of tf?

~I also notice that something like tf.reshape is used here and there, and even though there is a keras.layers.Reshape, I didn't find something like a keras.ops.reshape (that maybe would invoke tf.reshape, torch.Tensor.view and jax.numpy.reshape/jax.Array.reshape depending on the backend)?~ Silly me, obviously it's in keras.ops.reshape, can't believe I missed it, sorry about that.

Thanks for reading, Best, Jeremie

jchwenger avatar Dec 13 '25 10:12 jchwenger