Skip to content

Basic example of how to build a custom op for a PyTorch model

Notifications You must be signed in to change notification settings

scottamain/pytorch-op

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytorch-op

Basic example of how to build a custom op for a PyTorch model

python3 -m pip install torch numpy onnx

cmake -DCMAKE_PREFIX_PATH="$(python3 -c 'import torch.utils; print(torch.utils.cmake_prefix_path)')" -S . -B build

make -C build

python3 test_add.py

About

Basic example of how to build a custom op for a PyTorch model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published