-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Refactor frontend testing config #21570
Conversation
Thanks for contributing to Ivy! 😊👏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
- Added `SupportedDtypes` and `SupportedDevices` dataclasses, currently they're only a place holder instead of multiple attributes, for the future reference it should compute all parameters from a single `valid_dtypes` and `valid_devices` lists respectively. - Added `FrontendConfig` and `FrontendConfigWithBackend` classes, the first holds the same legacy information as before but will throw an exception if one is missing, the later is used for frontends that have a backend implemented, to reduce code redundancy. - Refactored `numpy`, `tensorflow`, `torch`, `jax` and `paddle` configs to use `FrontendConfigWithBackend` - Refactored `mxnet`, `onnx`, `scipy` and `pandas` frontend configs to use `FrontendConfig`
SupportedDtypes
andSupportedDevices
dataclasses, currently they're only a place holder instead of multiple attributes, for the future reference it should compute all parameters from a singlevalid_dtypes
andvalid_devices
lists respectively.FrontendConfig
andFrontendConfigWithBackend
classes, the first holds the same legacy information as before but will throw an exception if one is missing, the later is used for frontends that have a backend implemented, to reduce code redundancy.numpy
,tensorflow
,torch
,jax
andpaddle
configs to useFrontendConfigWithBackend
mxnet
,onnx
,scipy
andpandas
frontend configs to useFrontendConfig