Top "Torch" questions

Torch is a scientific computing framework for LuaJIT.

Pytorch: Convert FloatTensor into DoubleTensor

I have 2 numpy arrays, which I convert into tensors to use the TensorDataset object. import torch.utils.data as data_…

python torch pytorch
How to use the BCELoss in PyTorch?

I want to write a simple autoencoder in PyTorch and use BCELoss, however, I get NaN out, since it expects …

torch autoencoder loss pytorch
Error: caskroom/cask was moved. Tap homebrew/cask-cask instead

I try to go through installation process Github on MacOs Catalina The first step is to execute in Terminal: cd ~/ …

macos homebrew torch macos-catalina homebrew-cask
What is the relationship between PyTorch and Torch?

There are two PyTorch repositories : https://github.com/hughperkins/pytorch https://github.com/pytorch/pytorch The first clearly requires Torch …

torch pytorch
Torch - How to change tensor type?

I created a permutation of the numbers from 1 to 3. th> y = torch.randperm(3 ); th> y 3 2 1 [torch.DoubleTensor of …

lua torch
What is the proper way to weight decay for Adam Optimizer

Since Adam Optimizer keeps an pair of running averages like mean/variance for the gradients, I wonder how it should …

tensorflow deep-learning caffe torch mxnet
Taking subsets of a pytorch dataset

I have a network which I want to train on some dataset (as an example, say CIFAR10). I can create …

python machine-learning neural-network torch pytorch
RuntimeError: Expected object of backend CUDA but got backend CPU for argument: ret = torch.addmm(torch.jit._unwrap_optional(bias), input, weight.t())

When the forward function of my neural network (after the training phase is completed) is being executed, I'm experiencing RuntimeError: …

python pytorch torch tensor
"import torch" giving error "from torch._C import *, DLL load failed: The specified module could not be found"

I am currently using Python 3.5.5 on Anaconda and I am unable to import torch. It is giving me the following …

python torch
Torch - repeat tensor like numpy repeat

I am trying to repeat a tensor in torch in two ways. For example repeating the tensor {1,2,3,4} 3 times both ways …

lua torch