PyTensor
darkforest-py
module: binding
since v0.1.0-alpha
Signature
rust
#[pyclass] pub struct PyTensor { inner: Arc<RwLock<Tensor<f32, Cpu>>> }
Overview
Python class binding exposed to Python userland via PyO3.
Invariants & Design Principles
- Invariant: Releases Python GIL during long-running compute loops.
Usage Example
rust
import darkforest as df
t = df.zeros([100, 100])