Questions tagged [torch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
41 views

how to implement squared hinge loss in pytorch

does anyone have any advice on how to implement this loss in order to use it with a convolutional neural network? Also, how should I encode the labels of my training data? We were using one hot ...
2
votes
1answer
38 views

Colab can not connect to GPU from a python file [closed]

I am trying to run a github deep learning repository in Colab but I can not connect the python files to colab GPU. I can connect to GPU when writing a script in the colab notebook e.g. when I run ...
0
votes
0answers
53 views

Torch and TensorFlow: Is Variable(torch.cuda.FloatTensor([x]) equivalent to tf.convert_to_tensor([x])?

I would like to ask you if this: Variable(torch.cuda.FloatTensor([x]), requires_grad=False) in Torch is the equivalent to this: ...
0
votes
0answers
10 views

Error: 'attempt to index field 'mask' (a nil value)' while evaluating Torch network

I am trying to train this network: http://lear.inrialpes.fr/research/lvo/ It uses Torch, which I got here: https://github.com/nagadomi/distro I am using Ubuntu 18 + CUDA 10.0. I also installed rnn ...
1
vote
0answers
51 views

Write way to add samples to torch TabularDataset

I have a TabularDataset and i would like to add some examples to the dataset. ...
1
vote
0answers
46 views

Replacing VGG by LeNet Caffe model

this code works with a VGG caffe model (VGG_ILSVRC_19_layers.caffemodel). When I tried to change the model to a LeNet caffemodel (below the prototxt file), I got the following error. In 6 module of ...
2
votes
1answer
3k views

Does torch.cat work with backpropagation?

I was wondering if it was okay to use torch.cat within my forward function. I am doing so because I want the first two columns of my input to skip the middle hidden layers and go directly to the final ...
1
vote
1answer
51 views

No loss decay while learning Neural Network for X-OR operation in torch

I have implemented a simple 1 hidden layer feed forward neural network in torch to learn X-OR operation. Below is my code: ...
1
vote
1answer
102 views

Neural network accuracy in Torch depends on compute power?

I am new to machine learning and have quite good understanding of basic concepts. I was implementing a 3 Layer neural network on MNIST dataset with 784, 100, 10 neurons in input, hidden, output layer ...
1
vote
1answer
248 views

Torch on Gentoo

Has anyone tried to install Torch on top of Gentoo Linux Distribution? I'm very familiar with this distribution, but I'm totally new at torch. Googling a little, I found that Gentoo is not officially ...
1
vote
1answer
97 views

Unable to figure out nInputPlane in SpatialConvolution in torch?

Documentaion for Spatial Convolution define it as module = nn.SpatialConvolution(nInputPlane, nOutputPlane, kW, kH, [dW], [dH], [padW], [padH]) nInputPlane: The ...
5
votes
2answers
3k views

How to handle Memory issues in training Word Embeddings on Large Datasets?

I want to train a word predictability task to generate word embeddings. The document collection contains 243k documents. The code implementation is in torch. I am struggling with the huge size of the ...
1
vote
0answers
297 views

Multi-GPU, multi-machine computation with Torch

I know that Torch supports multi-GPU computation on the same machine (Example). Is it possible to perform multi-GPU, multi-machine computations with Torch?