Category "pytorch"

A2C not converge as the loss explode

I'm experimenting with Advantage Actor Critic algorithm, and the loss explode exponentially. like iteration actor_loss critic_loss 17 -0.072878 0.003239 78 -25

Cannot import PyTorch in Alpine Docker Container

The MRE below should be enough to explain what I'm trying to do. Google doesn't help as it seems to be a unique error, which surprised me since Alpine & PyT

Merge one tensor into other tensor on specific indexes in PyTorch

Any efficient way to merge one tensor to another in Pytorch, but on specific indexes. Here is my full problem. I have a list of indexes of a tensor in below cod

RuntimeError: Input type (torch.FloatTensor) and weight type (torch.cuda.FloatTensor) should be the same

I am trying to train the following CNN as follows, but I keep getting the same error regarding .cuda() and I am not sure how to fix it. Here is a chunk of my co

PyTorch Lightning training console output is weird

When training a PyTorch Lightning model in a Jupyter Notebook, the console log output is awkward: Epoch 0: 100%|███████

Working with image data from memory in Pytorch

Question: If I have an array in memory with dims (n, height, width, channels) and I want to get a Pytorch classifier to feed them forward and give me an array w

Faster way to do multiple embeddings in PyTorch?

I'm working on a torch-based library for building autoencoders with tabular datasets. One big feature is learning embeddings for categorical features. In pra

libtorch throws c10::error after build on Windows 10 (VS2019)

I've tried to build libtorch on Windows 10 using VS 2019 without CUDA and Python. Independent if I compile it with or without MKL, a simple test program crashes

Timeout in multi-machine training of pytorch?

Error occurs in multi-machine training of pytorch: RuntimeError: [/pytorch/third_party/gloo/gloo/transport/tcp/unbound_buffer.cc:136] Timed out waiting 1800000m

Predicting Sentiment of Raw Text using Trained BERT Model, Hugging Face

I'm predicting sentiment analysis of Tweets with positive, negative, and neutral classes. I've trained a BERT model using Hugging Face. Now I'd like to make pre

How to fix "ValueError: Expected input batch_size (1) to match target batch_size (4)."?

I'm training a pytorch neural network on google colab to classify sign langauge alphabets of 29 classes in total. We've been fixing the code by changing vario

How to specify which pytorch to import, if I have two different versions installed?

The PyTorch previously installed in the remote Linux system is problematic (version 1.8.0). It is in the system folders so I don't have privilege to uninstall o

How to specify which pytorch to import, if I have two different versions installed?

The PyTorch previously installed in the remote Linux system is problematic (version 1.8.0). It is in the system folders so I don't have privilege to uninstall o

How to specify which pytorch to import, if I have two different versions installed?

The PyTorch previously installed in the remote Linux system is problematic (version 1.8.0). It is in the system folders so I don't have privilege to uninstall o