Commit Graph

3 Commits

Author SHA1 Message Date
Francois Chollet
ccbcd63af7 Merge branch 'main' of github.com:keras-team/keras-core 2023-06-26 16:06:26 -07:00
Francois Chollet
6ec8a6160c Add torch and TF custom training loops guides 2023-06-26 16:06:00 -07:00
Matt Watson
fff9bbbe38 Support torch tensor inputs to data adapter (#399)
We use the `ARRAY_TYPES` in the epoch iterator to decide if an input
tensor to decide if an input type should be handle by the
`ArrayDataAdapter`. Without this change was seeing some errors passing
torch tensors to fit/predict on the torch backend.

Because this means that torch will be imported on all backends, we need
to move out import hack to all backends as well.
2023-06-26 14:51:47 -07:00