microsoft / torchy

A tracing JIT for PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Torchy

A tracing JIT for PyTorch. WIP; don't use.

Install

$ python setup.py install

Run

Torchy shouldn't require any change beyond adding a call to torchy.enable(). Example:

import torch
import torchy

torchy.enable()

x = torch.tensor(((3.,2.), (4.,5.)))
y = torch.tensor(((5.,6.), (7.,1.)))

w = x.add(x)
z = x.add(y)
w = None  # w not computed
print(z)

About

A tracing JIT for PyTorch

License:MIT License


Languages

Language:C++ 85.8%Language:Python 14.0%Language:PHP 0.2%Language:Shell 0.0%