We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What would it take to support JIT-compilation of an entire SVI.step()?
SVI.step()
For motivation, consider a beta bernoulli model which is 10x slower in Pyro than Edward.
PyTorch @jit.compile appears to be functional input->output. Therefore we would need to at least
@jit.compile
.differentiable_loss()
loss_and_grads
.backward()
torch.jit.trace
torch.jit.compile
broadcast_all()
Categorical.log_prob()
--jit
To see remaining PyTorch jit issues:
cd ~/github/pytorch/pytorch # or wherever your clone lives git checkout master git pull python setup.py build develop
pytorch-0.4.1
cd ~/github/uber/pyro # or wherever your clone lives git checkout pytorch-0.4.1 git pull make install make test-jit # saves results to jit.log
Here is an example jit.log.
The text was updated successfully, but these errors were encountered:
Are any torch.distributions samplers or log-probabilities supported by the JIT at all? Does the JIT have the same broadcasting semantics?
torch.distributions
Sorry, something went wrong.
I believe this is closed by #1431
neerajprad
No branches or pull requests
What would it take to support JIT-compilation of an entire
SVI.step()
?For motivation, consider a beta bernoulli model which is 10x slower in Pyro than Edward.
Feasibility
PyTorch
@jit.compile
appears to be functional input->output. Therefore we would need to at least.differentiable_loss()
insideloss_and_grads
(everything up to.backward()
)Tasks
.differentiable_loss()
(see also Migrate from .backward() to torch.autograd.grad() #628)torch.jit.trace
instead of the deprecatedtorch.jit.compile
broadcast_all()
in the jitCategorical.log_prob()
in the jit--jit
option to SVI examplesadd tutorialRemaining PyTorch issues
To see remaining PyTorch jit issues:
pytorch-0.4.1
branch of PyroHere is an example jit.log.
The text was updated successfully, but these errors were encountered: