Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.
/ gograd Public archive

Gograd is a small automatic differentiation framework written in Go.

License

Notifications You must be signed in to change notification settings

lucaionescu/gograd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gograd

Test

Gograd is a small automatic reverse-mode differentiation framework written in Go.

Example

a := NewVar(4)
b := NewVar(3)
c := a.Mul(a.Add(b))

c.Backward()

fmt.Println(c.value)
// prints 28

fmt.Println(a.grad)
// prints 11

fmt.Println(b.grad)
// prints 4

Resources

About

Gograd is a small automatic differentiation framework written in Go.

Topics

Resources

License

Stars

Watchers

Forks

Languages