Skip to content

Flag-C/extension-ffi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch C FFI examples

In this repository you can find examples showing how to extend PyTorch with custom C code. To use the ffi you need to install the cffi package from pip.

Currently there are two examples:

  • package - a pip distributable package
  • script - compiles the code into a local module, that can be later imported from other files

You may also want to look at pytorch/audio for an example of a type-generic C FFI extension.

About

Examples of C extensions for PyTorch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.1%
  • C 27.5%
  • C++ 9.4%