wr
hn
Top
New
Best
Ask
Show
Jobs
Back
a
apaszke
Joined 11 years ago
Karma
37
Submissions
25
Member since
Aug 17
View on Hacker News
Recent submissions
Mlir-hs – Haskell bindings for MLIR
g
github.com
3
apaszke
5 years ago
0
comments
Comment · 8 years ago
PyTorch was never a Chainer fork. The whole codebase are C libs from Lua Torch, and a bunch of Python code that was written entirely for this project. Chainer was an inspiration, but no code was ever shared between those two projects.
Comment · 9 years ago
PyTorch uses NVIDIA NCCL for multi-GPU communication (under BSD license). Gloo is only one of the three backends that can be used for distributed communication out of the box.
Comment · 9 years ago
It's not controlled by Facebook in any way. It's true that a large part of the core team works there, but development is public and guided by community needs first.
Comment · 9 years ago
It's not like you have to give up a lot - the graphs are simple data structures and creating them is not the expensive part of the training. The computation has to be re-done at every step in a static framework too, and this is the part that matters.
Comment · 9 years ago
gloo is only one of the three currently supported backends. One can easily switch to MPI, and pick an implementation that comes with a license you want.
Comment · 9 years ago
It supports numpy, and conversion from PyTorch tensors to numpy arrays is a matter of calling the numpy() method.
Comment · 9 years ago
To not have the kernel launch overhead you'd need to stop launching GPU kernels but that's now how things work in any framework ;)
Comment · 9 years ago
These ops are just not needed in PyTorch. while is just a Python while loop. Scan is a for loop, map is a list comprehension that applies modules. No need for anything fancy.
Comment · 9 years ago
Yes! There's an issue on that, where we'll be coordinating the work:
https://github.com/pytorch/pytorch/issues/494
Comment · 9 years ago
You save the parameters and the code of the model definition
Comment · 9 years ago
torch?
Comment · 9 years ago
But it is possible to write your model in purely functional style. Check out the PR to examples repo with functional ResNets
https://github.com/pytorch/examples/pull/22
.
Comment · 9 years ago
torch.nn offers a very similar interface to Keras (e.g. see Alexnet definition at
https://github.com/pytorch/vision/blob/master/torchvision/mo...
).
Comment · 9 years ago
No! Python 0 based indexing everywhere.