Skip to content

A baby sized deep learning framework πŸ‘ΌπŸ»πŸ”’

Notifications You must be signed in to change notification settings

FrederikRogalski/babygrad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Babygrad

A baby sized deep learning framework πŸ‘ΌπŸ»πŸ”’

Usage

from babygrad.tensor import Tensor
from babygrad.visualize import graph

def f(x):
    return x**2 + x

def mse(y, y_hat):
    return (y-y_hat)**2

x = Tensor(9, requires_grad=True)
y = Tensor(100)

y_hat = f(x)

loss = mse(y, y_hat)
loss.backward()

graph(loss).render("out/test", view=True, format="png")

test

About

A baby sized deep learning framework πŸ‘ΌπŸ»πŸ”’

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages