Title: [WIP] [Data API] Backend refactoring by roaffix · Pull Request #262 · arrayfire/arrayfire-python · GitHub
Open Graph Title: [WIP] [Data API] Backend refactoring by roaffix · Pull Request #262 · arrayfire/arrayfire-python
X Title: [WIP] [Data API] Backend refactoring by roaffix · Pull Request #262 · arrayfire/arrayfire-python
Description: NOTE: the assumption that this PR will be merged right after the #261 Major changes: Wrap safe_call(backend.get()...) under the library call which is now used as a private wrapper of the C library. That makes the public part of the library more intuitive for both end-users and library contributors. Wrap ctypes under CType which inherits the ctypes._SimpleCData type. Project structure changes: C library wrapper moved to the corresponding folder Moved dtype aux functions to dtypes/helpers. Also, some methods were transferred there from the array_object file Added operators block which is duplicated the functionality of magic methods (like __add__) from the main array object and is required by the specification Changed testing structure to test parameterization and test auto-generation. These solutions decrease somehow an intuition of test cases but simplify the flow of adding new cases - it requires 1 or 2 rows instead of hundreds, now. Minor changes: Removed some tags (TODO, FIXME, etc.) from the previous PR Removed an introduced in previous PR custom type ShapeType to avoid extra complexion in library typing Other minor code style changes Fixed minor bugs --- WIP --- backend config separated into pre-setup and backend configuration settings add more operators add more tests coverage add mocks for different backend types for even more coverage of different test scenarios fix CI/CD in GitHub for CPU tests
Open Graph Description: NOTE: the assumption that this PR will be merged right after the #261 Major changes: Wrap safe_call(backend.get()...) under the library call which is now used as a private wrapper of the C library...
X Description: NOTE: the assumption that this PR will be merged right after the #261 Major changes: Wrap safe_call(backend.get()...) under the library call which is now used as a private wrapper of the C library...
Opengraph URL: https://github.com/arrayfire/arrayfire-python/pull/262
X: @github
Domain: redirect.github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:3ad2d0f3-d2b6-188c-1ce0-473bc9bf64d9 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | A864:367724:78FBD0:9DC2EE:696B4D83 |
| html-safe-nonce | 2053f58fdacfaaaa09be1e9ca148e61d13b2a037007bce4a14cc89e2a480514f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODY0OjM2NzcyNDo3OEZCRDA6OURDMkVFOjY5NkI0RDgzIiwidmlzaXRvcl9pZCI6IjE1NDg4OTc5NDAzNzU1NTU0NTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 494a5c8676cb1a759577d1cb9469c115ccb40da64ce93ef43d4fbc2d5f351a8e |
| hovercard-subject-tag | pull_request:1300723302 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/arrayfire/arrayfire-python/pull/262/checks |
| twitter:image | https://avatars.githubusercontent.com/u/8783663?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/8783663?s=400&v=4 |
| og:image:alt | NOTE: the assumption that this PR will be merged right after the #261 Major changes: Wrap safe_call(backend.get()...) under the library call which is now used as a private wrapper of the C library... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/arrayfire/arrayfire-python git https://github.com/arrayfire/arrayfire-python.git |
| octolytics-dimension-user_id | 5395442 |
| octolytics-dimension-user_login | arrayfire |
| octolytics-dimension-repository_id | 37599258 |
| octolytics-dimension-repository_nwo | arrayfire/arrayfire-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 37599258 |
| octolytics-dimension-repository_network_root_nwo | arrayfire/arrayfire-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width