fancy-einsum-0.0.3
توضیحات
Drop-in replacement for torch/numpy einsum, with descriptive variable names in equations
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fancy-einsum-0.0.3 |
| نام | fancy-einsum |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Chris MacLeod |
| ایمیل نویسنده | chrism6794@gmail.com |
| آدرس صفحه اصلی | https://github.com/Kiv/fancy_einsum |
| آدرس اینترنتی | https://pypi.org/project/fancy-einsum/ |
| مجوز | MIT |
# Fancy Einsum
This is a simple wrapper around `np.einsum` and `torch.einsum` that allows the use of self-documenting variable names instead of just single letters in the equations. Inspired by the syntax in [einops](https://github.com/arogozhnikov/einops).
For example, instead of writing:
```python
import torch
torch.einsum('bct,bcs->bcts', a, b)
```
or
```python
import numpy as np
np.einsum('bct,bcs->bcts', a, b)
```
With this library you can write:
```python
from fancy_einsum import einsum
einsum('batch channels time1, batch channels time2 -> batch channels time1 time2', a, b)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fancy-einsum-0.0.3:
pip install fancy-einsum-0.0.3.whl
نصب پکیج tar.gz fancy-einsum-0.0.3:
pip install fancy-einsum-0.0.3.tar.gz