Web Analytics

go-torch

⭐ 125 stars English by Abinesh-Mathivanan

go-torch

go-torch is an open-source deep learning framework built from the ground up in pure Go. It provides a modular, PyTorch-like API for building and training neural networks with a stable auto-differentiation engine.

mail - abineshmathivanan31@gmail.com

blog - https://abinesh-mathivanan.vercel.app/en/posts/post-5/

features


TUI Dashboard

alt text


TODO


pre-requisites


usage

clone the repository

git clone https://github.com/abinesh-mathivanan/go-torch.git
cd go-torch

install dependencies

`` bash go mod tidy

execute

run the mnist training file to test out the features.
bash go run ./cnn_benchmark/go_bench.go
``


Benchmark

| Benchmark Detail | 128x128 | 512x512 | 1024x1024 | |:------------------------------------------|:-------------|:------------|:-------------| | Matrix Multiply | 510.33 µs | 13.54 ms | 130.50 ms | | Element-wise Add | 71.72 µs | 1.29 ms | 4.13 ms | | Element-wise Mul | 47.83 µs | 1.63 ms | 3.91 ms | | ReLU Activation | 121.18 µs | 1.75 ms | 6.45 ms | | Linear Layer Forward (B32,I128,O10) | 71.93 µs | | | | CrossEntropyLoss (B32,C10) | 11.16 µs | | | | Full Fwd-Bwd (Net:128-256-10, B32) | 4.02 ms | | |



Star History Chart

--- Tranlated By Open Ai Tx | Last indexed: 2025-12-26 ---