Skip to content

DKormann/tinsor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

you like tinygrad? you know einsum notation? than you could use tinsor

This tensor frontend will take care of all the unsqueese / permutes / expand you need

from tinsor import Shape, Tensor

S, T, U, V = Shape(S=5, T=3, U=4, V=6)

x = Tensor.ones(S, T) # (S=5, T=3)
y = Tensor.rand(T, U) # (T=3, U=4)

p = x * y # (S=5, T=3, U=4)

print(p.numpy().shape) # (5, 3, 4)

install

pip install -e .

formerly known as tinsorchflow.

About

ein frontend for tinygrad

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages