Commit Graph

4 Commits

Author SHA1 Message Date
Aritra Roy Gosthipaty
2481069ed4 Adding: Numpy Backend (#483)
* chore: adding numpy backend

* creview comments

* review comments

* chore: adding math

* chore: adding random module

* chore: adding ranndom in init

* review comments

* chore: adding numpy and nn for numpy backend

* chore: adding generic pool, max, and average pool

* chore: adding the conv ops

* chore: reformat code and using jax for conv and pool

* chore:  added self value

* chore: activation tests pass

* chore: adding post build method

* chore: adding necessaity methods to the numpy trainer

* chore: fixing utils test

* chore: fixing losses test suite

* chore: fix backend tests

* chore: fixing initializers test

* chore: fixing accuracy metrics test

* chore: fixing ops test

* chore: review comments

* chore: init with image and fixing random tests

* chore: skipping random seed set for numpy backend

* chore: adding single resize image method

* chore: skipping tests for applications and layers

* chore: skipping tests for models

* chore: skipping testsor saving

* chore: skipping tests for trainers

* chore:ixing one hot

* chore: fixing vmap in numpy and metrics test

* chore: adding a wrapper to numpy sum, started fixing layer tests

* fix: is_tensor now accepts numpy scalars

* chore: adding draw seed

* fix: warn message for numpy masking

* fix: checking whether kernel are tensors

* chore: adding rnn

* chore: adding dynamic backend for numpy

* fix: axis cannot be None for normalize

* chore: adding jax resize for numpy image

* chore: adding rnn implementation in numpy

* chore: using pytest fixtures

* change: numpy import string

* chore: review comments

* chore: adding numpy to backend list of github actions

* chore: remove debug print statements
2023-07-19 01:08:48 +05:30
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