docsmigration guideguide-migrating-from-pytorch
Migration Guide

Guide: Migrating from PyTorch

Direct op mapping table and migration guide between torch and darkforest-py / Rust.

Guide: Migrating from PyTorch

Direct op mapping table and migration guide between torch and darkforest-py / Rust.

PyTorch Operation Dark Forest Rust Dark Forest Python Status
torch.zeros() Tensor::zeros() df.zeros() SHIPPED
torch.matmul() ops::matmul() df.matmul() SHIPPED
torch.optim.AdamW() optim::AdamW df.AdamW() SHIPPED
torch.nn.Linear() nn::Linear df.nn.Linear() SHIPPED
loss.backward() autograd::backward() loss.backward() SHIPPED
torch.cuda.is_available() darkforest_cuda::is_available() df.cuda.is_available() IN PROGRESS