Computer Science, asked by abhijeetpattanaik399, 5 months ago

what is different between computer and torch ​

Answers

Answered by aarushchoudhary59
4

Explanation:

PyTorch is not just an interface. Its relationship with underlying C/C++ code is more close than in most libraries for scientific computations. The most common path is to build a low-level version and then spawn several interfaces for the most popular high-level languages, Python, R, whatever.

Not in this case. Underlying code is specifically tailored for the end purpose - running python code. A lot of work was done on memory management and optimization (and it’s really impressive how fast everything is), but I don’t really know details about it. Instead, I want to point out one change that matters a lot.

In Lua Torch there were containers. In Pytorch they are gone. You construct your model as a subclass of Module and redefine the forward step as a method, which is a neat way to do it without TensorFlow’s verbosity (which has its benefits, though).

Containers in Lua Torch, if you spend some time working with them, have a problem, you don’t really know what happens inside. If you want to convolve some layer A, then upsample it and concatenate with layer A and do something with the result, well, maybe you can manage to write something similar (you still can’t be sure it does exactly that). But how will the gradients flow? Containers don’t answer this question. These subtle things that don’t arise often, but are important sometimes, can be found only over time.

In Pytorch this process is completely transparent, even better, you can run your code line by line and check the dimensionality of every tensor. Error messages are understandable and actually make sense. I wanted this badly while using Theano/Lasagne.

So, at least because they have solved a major architectural issue without breaking anything, it’s worth looking at.

Answered by mohdzahiruddin9903
0

Answer:

torch or computer ( I say computer is wonderful machine)

machine)Explanation:

machine)Explanation:torch is a wonderful machine which gives us light

machine)Explanation:torch is a wonderful machine which gives us lightcomputer is a wonderful machine which gives us many information and before computers were invented people used to go to library and search their answers

Similar questions