Thanks to visit codestin.com
Credit goes to github.com

Skip to content

v659/torch-recreation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

torch-recreation

This is a simple recreation of torch and I will see if I can use it to train a model

tensor.py

This is a replica of Tensors in torch, and has multiple funcitons. Included in them are funcitons like ad, multiply, div, tanh, sqrt

nn.py

Has linear, Embedding, LayerNorm, Relu, Sequential, SGD/Adam, CrossEntropyLoss, MSELoss, and softmax

Transformer.py

Transformer with Self-Attention

Main.py

Example in which you can train the model to predict number sequences

Have fun!

About

This is a simple recreation of torch and I will see if I can use it to train a model

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages