array-adhoc-0.0.1


توضیحات

Implements parts of the Python Array API
ویژگی مقدار
سیستم عامل -
نام فایل array-adhoc-0.0.1
نام array-adhoc
نسخه کتابخانه 0.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده -
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/array-adhoc/
مجوز MIT License
# array-adhoc This an ad-hoc implementation of parts of the Python Array API backed by backends that do not themselves fully implement them. The purpose is to use those backends with normalized array api code. For example, using this, you can use pytorch and the python arrays api using the same interface. It's ad-hoc because I'm only implementating parts of the spec when I use them, and I do the implementations barebones. This could easily improve with some good pull requests. Wrappers Included: - torch Handoffs Included: - cupy - numpy It is easy to add a new wrapper or handoff, you just import the api functions in a new named file. If time is short, just make a handoff first, and then if something is missing or wrong or not compatible with old releases, improve it into a wrapper. Usage: ``` import array_adhoc.torch as xp array = xp.asarray([2,4,9]) print(xp.sqrt(array)) ```


نیازمندی

مقدار نام
- torch


نحوه نصب


نصب پکیج whl array-adhoc-0.0.1:

    pip install array-adhoc-0.0.1.whl


نصب پکیج tar.gz array-adhoc-0.0.1:

    pip install array-adhoc-0.0.1.tar.gz