4 ms·
Neat! This needs Python bindings, stat!
by tomrod 9y ago
Neat!
This needs Python bindings, stat!
- nicovasilache 9y agoPython bindings are in there :) This needs a tensor library callable from python that works on GPUs. One direction we are going towards is PyTorch via ATen / Torch tensors; we already use the C++ parts of ATen. Of course any other CUDA tensor library with minimal alloc/copy/synchronize would work too. Send a PR? ;)
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]
- priy2201 9y agofor clarity, we provide very "basic" python bindings. For example checkout https://facebookresearch.github.io/TensorComprehensions/mapping_options.html#options-api https://facebookresearch.github.io/TensorComprehensions/mapp... for simple example of how we expose mapping options to python. Also TC doesn't do data allocation itself and it requires tensor library from users to do that. So if you are using Caffe2 for example, you could use the TcOp that we ship inside TensorComprehensions for Caffe2 and using caffe2 pybindings, you can already write TC in python. No work needed for creating python bindings. We welcome PRs on this :) As for other tensor libraries, like ATen based on TH* used in torch/pytorch, you have the ability to create tensor but these require integrating tensor library into TC and writing pybindings for them. PRs welcome on this as well.