An open API service indexing awesome lists of open source software.

https://github.com/0xhilsa/tenop

A lightweight & minimalist tensor computation library with CUDA backend
https://github.com/0xhilsa/tenop

bash c cuda python3 tensor

Last synced: 2 months ago
JSON representation

A lightweight & minimalist tensor computation library with CUDA backend

Awesome Lists containing this project

README

          


Tenop Logo



PyPI - Version


PyPI - Python Version


License


TenOp is a lightweight and minimalist tensor computation library with CUDA acceleration, designed for high-performance numerical computing.

---

## 🚀 Features

- Simple tensor operations with a clean API
- Optimized backend with CPU and CUDA support
- Written in Python with compiled C/CUDA extensions

## 📦 Installation
```bash
pip install tenop
```

## Or install from source
```bash
git clone https://github.com/0xhilSa/tenop.git
cd tenop
pip install .
```

## Usage
```python
from tenop import Tensor

x = Tensor([1,2,3,4,5], device="cpu:0")
print(x)
print(x.numpy())
print(x.device, x.device.name)
y = x.cuda()
print(y)
print(y.numpy())
print(y.device, y.device.name)
```
See [./tests/testing.ipynb](./tests/testing.ipynb) for more examples

---

## LICENSE
[MIT](./LICENSE)