Top "Torch" questions

Torch is a scientific computing framework for LuaJIT.

How does the "view" method work in PyTorch?

I am confused about the method view() in the following code snippet. class Net(nn.Module): def __init__(self): super(…

python memory pytorch torch tensor
Torch sum a tensor along an axis

ipdb> outputs.size() torch.Size([10, 100]) ipdb> print sum(outputs,0).size(),sum(outputs,1).size(),sum(outputs,2).size() (100L,) (100L,) (100…

python sum pytorch torch tensor
How to check if two Torch tensors or matrices are equal?

I need a Torch command that checks if two tensors have the same content, and returns TRUE if they have …

lua torch
Bool value of Tensor with more than one value is ambiguous in Pytorch

I want to create a model in pytorch, but I can't compute the loss. It's always return Bool value of …

python torch
Using CUDA with pytorch?

I have searched on here but I found only outdated posts. I want to run the training on my GPU. …

pytorch torch
PyTorch: How to use DataLoaders for custom Datasets

How to make use of the torch.utils.data.Dataset and torch.utils.data.DataLoader on your own data (not …

python torch pytorch
What does "unsqueeze" do in Pytorch?

I'm looking at the documentation, and here is their example. I cannot understand how this example corresponds to their explanation: "…

python pytorch torch torchvision
Could not find a version that satisfies the requirement torch>=1.0.0?

Could not find a version that satisfies the requirement torch>=1.0.0 No matching distribution found for torch>=1.0.0 (from stanfordnlp)

python torch
How to install Torch on windows 8.1?

Torch is a scientific computing framework with wide support for machine learning algorithms. It is easy to use and efficient, …

lua windows-8.1 luajit torch
pytorch, AttributeError: module 'torch' has no attribute 'Tensor'

I'm working with Python 3.5.1 on a computer having CentOS Linux 7.3.1611 (Core) operating system. I'm trying to use PyTorch and I'm …

python python-3.5 centos7 torch pytorch