Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-tensorflow backends in KerasCV's preprocessing layers #2240

Merged

Conversation

tirthasheshpatel
Copy link
Contributor

What does this PR do?

This PR adds support for non-tensorflow backends in KerasCV's preprocessing layers. When not working with TensorFlow specific data structures (raggeds and sparse tensors), the preprocessing layers now accept and return backend native tensors.

Note that all the computations still happen in TensorFlow and it would require a major refactor to change that.

For the TensorFlow backend, the changes in this PR should be a no-op i.e. the behaviour should remain completely unchanges for the tensorflow backend.

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@divyashreepathihalli
Copy link
Collaborator

Thanks for the PR Tirth! LGTM! Please rebase with master as some of the errors have been resolved in master.

@divyashreepathihalli
Copy link
Collaborator

LGTM! Thanks :)!

@divyashreepathihalli divyashreepathihalli merged commit e2b627e into keras-team:master Dec 15, 2023
10 checks passed
@tirthasheshpatel tirthasheshpatel deleted the k3-aug-layers-part1 branch December 15, 2023 05:18
yuvraj-wale pushed a commit to yuvraj-wale/keras-cv that referenced this pull request Feb 8, 2024
…ras-team#2240)

* Support non-TF backends in KerasCV's preprocessing layers

* Fix failing PyTorch tests on GPU

* ops.convert_to_tensor -> ops.convert_to_numpy

* Fix remaining instances

* More torch failures

* Remove unrelated change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants