repo
stringclasses
147 values
number
int64
1
172k
title
stringlengths
2
476
body
stringlengths
0
5k
url
stringlengths
39
70
state
stringclasses
2 values
labels
listlengths
0
9
created_at
timestamp[ns, tz=UTC]date
2017-01-18 18:50:08
2026-01-06 07:33:18
updated_at
timestamp[ns, tz=UTC]date
2017-01-18 19:20:07
2026-01-06 08:03:39
comments
int64
0
58
user
stringlengths
2
28
pytorch/pytorch
26,392
How to print out the name and value of parameters in module?
torch::jit::script::Module module = torch::jit::load(model_path); How to print out the name and value of parameters in module?
https://github.com/pytorch/pytorch/issues/26392
closed
[]
2019-09-18T03:13:03Z
2019-09-18T16:15:05Z
null
boyob
pytorch/pytorch
26,344
How to get rid of zombie processes using torch.multiprocessing.Pool?
I am using torch.multiprocessing.Pool to speed up my NN in inference, like this: import torch.multiprocessing as mp mp = mp.get_context('forkserver') def parallel_predict(predict_func, sequences, args): predicted_cluster_ids = [] pool = mp.Pool(args.num_workers, maxtasksperchild=1) ...
https://github.com/pytorch/pytorch/issues/26344
open
[ "module: dependency bug", "oncall: distributed", "module: multiprocessing", "triaged" ]
2019-09-17T11:55:41Z
2019-11-14T00:08:11Z
null
DonkeyShot21
pytorch/pytorch
25,990
How to reproduce a Cross Entropy Loss without losing numerical accuracy?
## 🐛 Bug <!-- A clear and concise description of what the bug is. --> I get a discrepancy between the values of the losses obtained by the torch. CrossEntropyLoss and CustomeCrossEntropyLoss. ## To Reproduce import torch import torch.nn.modules.loss as L class CustomCrossEntropyLoss(L._...
https://github.com/pytorch/pytorch/issues/25990
closed
[]
2019-09-11T10:45:29Z
2019-09-11T19:51:51Z
null
tamerlansb
pytorch/pytorch
25,910
How to use batch norm when there has padding?
I am doing a NLP task and input various-length sentences into model, so I add some padding to keep every sentence to the longest length in one batch. However, padding length can affect batch norm obviously. And I cannot find a module with a parameter of mask? Can you help me ?
https://github.com/pytorch/pytorch/issues/25910
closed
[]
2019-09-10T12:22:13Z
2019-09-10T16:19:48Z
null
RichardHWD
pytorch/pytorch
25,766
how to get cube-root of a negative?
hello, I want to know how to get cube-root of a negative? for example (-8)^(1/3) = -2 however, torch.pow(-8, 1/3) get Nan.
https://github.com/pytorch/pytorch/issues/25766
closed
[]
2019-09-06T13:33:15Z
2021-06-18T15:26:46Z
null
qianlinjun
pytorch/examples
628
No data on lo interface for a single node training
Hi, I ran the single node training and it ran normally. I want to monitor the bandwidth of the process in one single machine. I used `iptraf-ng` on CentOS 7. I selected the `lo` interface. But it showed nothing. The IP I used is `127.0.0.1`. Is there something wrong? Thanks
https://github.com/pytorch/examples/issues/628
open
[ "triaged" ]
2019-09-06T12:28:10Z
2022-03-09T23:48:11Z
0
ElegantLin
pytorch/pytorch
25,699
PyTorch C++ API as a static lib: how to compile ?
## ❓ Questions and Help this questions is linked to the bug described in the issue https://github.com/pytorch/pytorch/issues/25698 I'd like to have instructions on how to compile PyTorch C++ API (libtorch project) as a statical library to link with my C++ projects : - for Linux, Windows and MacOS - with the l...
https://github.com/pytorch/pytorch/issues/25699
closed
[]
2019-09-05T10:30:33Z
2025-07-02T12:59:59Z
null
VitaMusic
pytorch/pytorch
25,572
How to change dynamic model to onnx?
## 📚 Documentation I want to change [Extremenet](https://github.com/xingyizhou/ExtremeNet) to onnx, which programmed a dynamic model, I searched 1 https://pytorch.org/docs/stable/onnx.html#tracing-vs-scripting 2 https://github.com/onnx/tutorials It seems not told how to change a dynamic pytorch model to onnx, whe...
https://github.com/pytorch/pytorch/issues/25572
closed
[ "module: onnx" ]
2019-09-03T05:27:41Z
2019-09-03T14:17:53Z
null
qingzhouzhen
huggingface/transformers
1,150
What is the relationship between `run_lm_finetuning.py` and the scripts in `lm_finetuning`?
## ❓ Questions & Help It looks like there are now two scripts for running LM fine-tuning. While `run_lm_finetuning` seems to be newer, the documentation in `lm_finetuning` seems to indicate that there is more subtlety to generating the right data for performing LM fine-tuning in the BERT format. Does the new script ...
https://github.com/huggingface/transformers/issues/1150
closed
[ "wontfix" ]
2019-08-29T18:15:45Z
2019-12-30T15:04:14Z
null
zphang
pytorch/pytorch
25,383
In torch::jit::script::Module module = torch::jit::load("xxx.pt"), How to release module?
## ❓ Questions and Help ### Please note that this issue tracker is not a help form and this issue will be closed. We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum: - [Discussion Forum](https://discuss.pytorch.org/)...
https://github.com/pytorch/pytorch/issues/25383
closed
[ "oncall: jit", "triaged" ]
2019-08-29T09:16:14Z
2019-12-12T19:40:20Z
null
pxEkin
pytorch/pytorch
25,294
What is the purpose of fp16 training? faster training? or better accuracy?
I think for fp16 inference, just train a model on FP32 and then just model.half() will work. But this forceful type casting would lead worse accuracy. I'm not sure which is better between 1. FP32 training then model.half() -> fp16 inference VS 2. FP16 training using apex then inference FP16 with the same settin...
https://github.com/pytorch/pytorch/issues/25294
closed
[]
2019-08-28T06:12:01Z
2019-09-18T02:06:39Z
null
dedoogong
pytorch/pytorch
25,284
How to preserve backward grad_fn after distributed 'all_gather' operations
I am trying to implement model parallelism in a distributed data parallel setting. Let’s say I have a tensor output in each process and a number of operations have been performed on it (in each process independently). The tensor has a .grad_fn attached to it. Now I want to perform an all_gather to create a list [ten...
https://github.com/pytorch/pytorch/issues/25284
closed
[ "oncall: distributed" ]
2019-08-28T02:00:49Z
2019-08-28T10:13:50Z
null
JoyHuYY1412
pytorch/examples
624
How to get Class Activation Map (CAM) in c++ front end ?
Hi everyone , I saw many example of visualizing CAM with python using "register_backward_hook" but can't find any way to do the same in C++ frontend. Is there away to visualize Conv layers in c++ frontend ? Thank you in advance.
https://github.com/pytorch/examples/issues/624
open
[ "c++" ]
2019-08-28T00:52:19Z
2022-03-09T23:48:32Z
null
zirid
pytorch/xla
961
[Question] how to track TPU memory usage
How can I access TPU (internal) memory utilization? Thanks!
https://github.com/pytorch/xla/issues/961
closed
[ "question" ]
2019-08-27T20:10:59Z
2019-10-30T16:50:52Z
null
nosound2
pytorch/examples
622
how to train MnasNet? I use the main.py to train MnasNet, but get the worse result. It is just 60.7%, while it should be 73% as you say in Mnasnet.py
https://github.com/pytorch/examples/issues/622
closed
[]
2019-08-27T14:25:29Z
2019-09-06T18:12:16Z
null
xufana7
pytorch/pytorch
25,247
where is the link to this NOTE?
## 📚 Documentation <!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/...
https://github.com/pytorch/pytorch/issues/25247
closed
[]
2019-08-27T13:14:09Z
2024-02-27T05:02:26Z
null
vainaixr
pytorch/examples
621
RuntimeError: CUDA out of memory. Tried to allocate 26.00 MiB .................
RuntimeError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 1024.00 MiB total capacity; 435.61 MiB already allocated; 24.17 MiB free; 26.39 MiB cached) I have tried to set the batch-size as 16 or 32, but it didn't work. Would you please tell me how to solve this problem?
https://github.com/pytorch/examples/issues/621
closed
[]
2019-08-27T12:38:17Z
2022-03-09T23:46:25Z
4
qiahui
pytorch/examples
620
Can I use async in ImageNet
Does the example of ImageNet support async? If not, how can I add this? Are there some suggestions? Thanks!
https://github.com/pytorch/examples/issues/620
closed
[]
2019-08-27T02:38:13Z
2019-09-23T00:13:17Z
2
ElegantLin
pytorch/pytorch
25,180
How to filter with a transfer function in Pytorch??
Hi, I am trying to implement a 1D convolution operation with `F.conv1d`. The current usage of this function is to provide the weights of the filter directly in the time domain. However, for some DSP purposes, it is more effective to apply the filtering process in terms of the transfer function of the filter. In othe...
https://github.com/pytorch/pytorch/issues/25180
closed
[]
2019-08-26T15:22:31Z
2019-08-26T15:42:02Z
null
ahmed-fau
pytorch/pytorch
25,003
How to use manually installed third_party libraries, instead of recursive third_party?
Some of the packages **have been manually installed** on the system. How to build **everything** based on existing packages, instead of the **recursively checked out** third_party libraries? For instance: **pybind11** ???
https://github.com/pytorch/pytorch/issues/25003
closed
[]
2019-08-22T00:39:11Z
2019-08-22T15:28:57Z
null
jiapei100
pytorch/xla
943
[Looking for suggestions] How to start looking at xla code?
not really an issue, it's just I met so many random errors from stack-trace-back or other source which I barely understand, and the model training is quite slow and I cannot spot which tensors got various shape at different training and are re-allocated to cpu, so I'm thinking if looking into the `csrc` would help. Yet...
https://github.com/pytorch/xla/issues/943
closed
[]
2019-08-19T14:58:08Z
2019-08-25T14:24:47Z
null
crystina-z
pytorch/examples
611
Problem on multiple nodes
Hi, when I am running ImageNet example on multiple nodes, I met the problem showing `RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:272, unhandled system error` on my node 0. The command I used is `python main.py -a resnet50 --dist-url 'tcp://IP_OF_NODE0:FREEPORT' --dist-backend 'nccl'...
https://github.com/pytorch/examples/issues/611
open
[ "distributed" ]
2019-08-15T09:21:21Z
2022-03-09T20:52:45Z
2
ElegantLin
pytorch/pytorch
24,399
How to get NLLLoss grad?
import torch import torch.nn as nn m = nn.LogSoftmax(dim=1) loss = nn.NLLLoss() a=[[2., 0.], [1., 1.]] input = torch.tensor(a, requires_grad=True) target = torch.tensor([1, 1]) output = loss(m(input), target) output.backward() print(input.grad) ------------------------------------------------------- ten...
https://github.com/pytorch/pytorch/issues/24399
closed
[]
2019-08-15T09:07:53Z
2019-08-15T16:26:06Z
null
williamlzw
pytorch/audio
235
How to make the data precision loaded by torchaudio.load be consistent with the data loaded by the librosa.load
I found that data precision loaded by torchaudio.load is much lower than librosa. Is there a way to improve data precision?
https://github.com/pytorch/audio/issues/235
closed
[]
2019-08-14T15:13:41Z
2019-08-27T20:12:50Z
null
YapengTian
pytorch/pytorch
24,310
[Question] Who can tell me where is the windows version torch in PYPI? It just like missing.
## ❓ Questions and Help ### Please note that this issue tracker is not a help form and this issue will be closed. We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum: - [Discussion Forum](https://discuss.pytorch.org/)...
https://github.com/pytorch/pytorch/issues/24310
closed
[ "module: windows", "triaged" ]
2019-08-14T05:48:57Z
2020-02-04T03:10:59Z
null
xiaohuihuichao
pytorch/examples
607
Does this variable 'tokens' make sense?
https://github.com/pytorch/examples/blob/4581968193699de14b56527296262dd76ab43557/word_language_model/data.py#L32 Thanks!
https://github.com/pytorch/examples/issues/607
closed
[]
2019-08-13T03:33:11Z
2019-08-16T12:01:08Z
4
standbyme
pytorch/pytorch
24,220
Where is nn.Transformer for pytorch 1.2.0 on win10?
## ❓ Questions and Help I ran the installing code "pip3 install torch==1.2.0 torchvision==0.4.0 -f https://download.pytorch.org/whl/torch_stable.html" and installed torch 1.2.0. Yet, I can't find the Transformers in nn module, where are they? platform: WIN10 ### Please note that this issue tracker is not a h...
https://github.com/pytorch/pytorch/issues/24220
closed
[]
2019-08-13T01:08:31Z
2019-10-07T02:07:59Z
null
shuaishuaij
pytorch/examples
605
DistributedDataParralle training speed
Hi, I am using image net. But there is no big difference between the time consuming when I used 2 GPUs, 4 GPUs or 8 GPUs. I just changed the `gpu id` and batch size to guarantee the memory of GPU was fully used. The speed did not increase although I used more GPUs. Is there something wrong about what I did? Thanks a...
https://github.com/pytorch/examples/issues/605
open
[ "distributed" ]
2019-08-10T16:37:09Z
2022-10-11T11:29:08Z
5
ElegantLin
pytorch/tutorials
606
Is there any reason for using tensor.data?
https://github.com/pytorch/tutorials/blob/60d6ef365e36f3ba82c2b61bf32cc40ac4e86c7b/beginner_source/blitz/autograd_tutorial.py#L160 This is an official tutorial codes. Is there any reason for using tensor.data? ~~~ x = torch.randn(3, requires_grad=True) y = x * 2 while y.data.norm() < 1000: y = y * 2 ...
https://github.com/pytorch/tutorials/issues/606
closed
[]
2019-08-09T06:27:43Z
2019-09-04T13:35:22Z
0
minlee077
pytorch/pytorch
24,009
How to convert pytorch model(faster-rcnn) to onnx?
## ❓ Questions and Help I trained a faster-rcnn model use the project: jwyang/faster-rcnn.pytorch [https://github.com/jwyang/faster-rcnn.pytorch](url) I want convert the model to onnx, this is my code: ` torch_out=torch.onnx.export(fasterRCNN,\ (im_data,im_info,gt_boxes,num_boxes),\ ...
https://github.com/pytorch/pytorch/issues/24009
closed
[ "module: onnx", "triaged" ]
2019-08-08T08:57:05Z
2021-12-22T21:51:39Z
null
waynebianxx
pytorch/examples
604
Do you have any instructions for the use of functions related to C + + ports?
Do you have any instructions for the use of functions related to C + + ports? for example: auto aa = torch::tensor({ 1, 2 , 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }); auto bb = torch::reshape(aa, { 2, 2, 2, 2 }); const void *src = bb.data<int>(); std::vector<int>value; void *dst = &value; torch::CopyByt...
https://github.com/pytorch/examples/issues/604
closed
[]
2019-08-07T06:56:32Z
2019-08-07T17:26:02Z
1
yeyuxmf
pytorch/tutorials
593
does the attention need do mask on the encoder_outputs?
attn_weights = self.attn(rnn_output, encoder_outputs) this is the attn_weights, the number of output vector in a batch is different because the input length is different, and the number of output vector is padded align max_seq_len in the batch. but when compute attn_weights, there is no mask operation on the paddi...
https://github.com/pytorch/tutorials/issues/593
closed
[]
2019-08-06T12:45:14Z
2019-08-07T19:11:51Z
1
littttttlebird
huggingface/sentence-transformers
6
What is the classical loss for doc ranking problem? Thank you.
Based on my understanding, Multiple Negatives Ranking Loss is a better loss for doc ranking problem. What is the former classical loss for doc ranking problem? Thank you very much.
https://github.com/huggingface/sentence-transformers/issues/6
closed
[]
2019-08-05T03:49:39Z
2019-08-05T08:21:27Z
null
guotong1988
pytorch/examples
600
What is the different between train_loss and test_loss?
Hello, I am a student who is just beginning to learn pytorch, I have runnd the examples of MNIST code, I am curious why the train_loss and test_loss are calculated differently.Here is the calculation code.Why are they not using the same code? `loss = F.nll_loss(output, target) # train_loss` ` test_loss = F.nll_los...
https://github.com/pytorch/examples/issues/600
closed
[]
2019-08-05T02:35:51Z
2019-08-18T11:15:44Z
null
wulongjian
pytorch/pytorch
23,773
how to modify activation in GRU
We know in keras, `Bidirectional(GRU(128, activation='linear', return_sequences=True))(a1) # (240,256)`,that is to say, we can choose activation.But in torch,there’s no para to choose.`nn.GRU(n_in, n_hidden, bidirectional=True, dropout=droupout, batch_first=True, num_layers=num_layers) `I want to know how to modify ac...
https://github.com/pytorch/pytorch/issues/23773
closed
[]
2019-08-05T01:45:08Z
2019-08-05T02:05:10Z
null
MichelleYang2017
pytorch/examples
598
Problem finding the model en
Hi, How can I resolve this error? ``` $ python train.py Traceback (most recent call last): File "train.py", line 20, in <module> inputs = data.Field(lower=args.lower, tokenize='spacy') File "/home/mahmood/.local/lib/python2.7/site-packages/torchtext/data/field.py", line 152, in __init__ self.tokeni...
https://github.com/pytorch/examples/issues/598
closed
[]
2019-08-01T11:09:46Z
2022-03-10T00:25:00Z
1
mahmoodn
pytorch/text
572
How to set the max length for batches?
Is there a way to use something like `max_len` argument: all text entries in a dataset longer than a certain length can be thrown out.
https://github.com/pytorch/text/issues/572
closed
[]
2019-07-29T18:25:25Z
2019-09-16T15:04:40Z
null
XinDongol
pytorch/pytorch
23,490
upcoming PEP 554: how much effort we need to support sub-interpreter
## 🚀 Feature support python sub-interpreters and maintains all status of the torch library. ## Motivation as #10950 demonstrates, the current ``torch`` library cannot lives on multiple sub-interpreter simultaneously within the same process. But we do need to run python codes on multiple "threads" at the same t...
https://github.com/pytorch/pytorch/issues/23490
open
[ "feature", "triaged" ]
2019-07-28T16:19:53Z
2019-08-02T16:16:00Z
null
winggan
pytorch/pytorch
23,423
how to process c++ forward multiple return values
my model return value like this , it is detection model output = ( tensor1, # loc preds tensor2 # conf preds ) how to get return values in c++
https://github.com/pytorch/pytorch/issues/23423
closed
[]
2019-07-26T07:37:15Z
2019-07-26T11:14:56Z
null
kakaluote
pytorch/vision
1,166
How to train resnet18 to the best accuracy?
I recently did a simple experiment, training cifar10 with resnet18( torchvision.models), but I can't achieve the desired accuracy(93%). I found a GitHub repository where the example can be trained to 93% accuracy, [pytorch-cifar](https://github.com/kuangliu/pytorch-cifar). But his implementation is different from...
https://github.com/pytorch/vision/issues/1166
closed
[ "question", "module: models", "topic: classification" ]
2019-07-25T09:57:20Z
2019-07-26T09:05:35Z
null
zerolxf
huggingface/neuralcoref
187
Where is the conll parser?
In the [instructions](https://github.com/huggingface/neuralcoref/blob/master/neuralcoref/train/training.md) there is a reference to a conll parser and conll processing scripts, but those links are dead. They have been removed but it's not clear to me why.
https://github.com/huggingface/neuralcoref/issues/187
closed
[ "training", "docs" ]
2019-07-23T20:59:40Z
2019-12-17T06:30:02Z
null
BramVanroy
pytorch/pytorch
23,218
What is the torchvision version for pytorch-nightly? Use 0.3.0 to report errors
The official website does not provide the torchvison version installation method. Here is the error message when torchvison 0.3.0 is used. torchvision/_C.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeERKNS_6TensorE That should be caused by the mismatch version between pytorch-nightly and torch...
https://github.com/pytorch/pytorch/issues/23218
closed
[ "module: docs", "triaged", "module: vision" ]
2019-07-23T06:37:44Z
2021-03-12T13:00:16Z
null
zymale
pytorch/pytorch
23,215
How the ops are registerd to ATenDispatch's op tables_
I want to know how ops are registered to ATenDispatch's op_tables_; I see ATenDispatch has registerOp/registerVariableOp interface, but not found code that these interfaces are called to register ops; Is ATenDispatch use the global static varable to trigger the registration like C10_DECLARE_REGISTRY mechanism? I ...
https://github.com/pytorch/pytorch/issues/23215
closed
[]
2019-07-23T06:17:08Z
2019-07-23T10:44:28Z
null
dongfangduoshou123
pytorch/tutorials
566
Is this RNN implementation different from the vanilla RNN?
https://github.com/pytorch/tutorials/blob/master/intermediate_source/char_rnn_classification_tutorial.py Standard Interpretation ------------------------- In the original RNN, the hidden state and output are calculated as [![enter image description here][1]][1] in other words, we obtain the the output from...
https://github.com/pytorch/tutorials/issues/566
closed
[]
2019-07-20T07:49:30Z
2021-06-16T00:15:41Z
1
KinWaiCheuk
pytorch/xla
837
How to save/load a model trained with `torch_xla_py.data_parallel`
A `torch_xla_py.data_parallel` model doesn't have an implementation for the function `state_dict()` which is required to save/load the model. Is there a way around this? Thanks
https://github.com/pytorch/xla/issues/837
closed
[]
2019-07-18T17:23:42Z
2019-07-29T23:23:51Z
null
ibeltagy
pytorch/xla
836
how to read the output of `_xla_metrics_report`
This is not an issue, but I am curious how to read the metrics report printed by: `print(torch_xla._XLAC._xla_metrics_report())` I want to see if all the operations I am using are supported or not, and if there's something to do to speed it up. Here's a sample output: ``` 2019-07-18 17:15:45,048: ** ** * Sav...
https://github.com/pytorch/xla/issues/836
closed
[]
2019-07-18T17:21:05Z
2019-07-25T23:21:40Z
null
ibeltagy
pytorch/pytorch
23,015
I used libtorch to write resnet18 for training in C++, so how to load resnet18.pth in pytorch to help pre-training
## ❓ Questions and Help ### Please note that this issue tracker is not a help form and this issue will be closed. We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum: - [Discussion Forum](https://discuss.pytorch.org/)...
https://github.com/pytorch/pytorch/issues/23015
closed
[]
2019-07-18T08:53:31Z
2019-07-18T08:57:16Z
null
CF-chen-feng-CF
huggingface/transformers
805
Where is "run_bert_classifier.py"?
Thanks for this great repo. Is there any equivalent to [the previous run_bert_classifier.py](https://github.com/huggingface/pytorch-pretrained-BERT/tree/master/examples/run_bert_classifier.py)?
https://github.com/huggingface/transformers/issues/805
closed
[]
2019-07-17T14:57:53Z
2020-12-02T15:59:46Z
null
amirj
pytorch/pytorch
22,858
What is the abbreviation of CI?
## ❓ Questions and Help I ma sorry, I don't understand the sentence: ` On CI, we test with BUILD_SHARED_LIBS=OFF.` What is the CI ? What is the BUILD_SHARED_LIBS? Could someone explain it for me? Thank you very much! ![image](https://user-images.githubusercontent.com/30762967/61199981-868abd00-a712-11e9-9fc3-fc3d...
https://github.com/pytorch/pytorch/issues/22858
closed
[]
2019-07-15T07:11:37Z
2019-07-15T07:17:31Z
null
137996047
pytorch/pytorch
22,791
How to use mpi backend without CUDA_aware
We noticed that the MPI backend doesn't support the GPU from the official website,(https://pytorch.org/docs/master/distributed.html), then we complied the Pytorch with USE_MPI=1. The command line is `python3 main.py -a resnet50 --dist-url 'tcp://12.0.50.1:12348' --dist-backend 'mpi' --multiprocessing-distributed --worl...
https://github.com/pytorch/pytorch/issues/22791
open
[ "triaged", "module: mpi" ]
2019-07-12T08:09:15Z
2020-11-25T06:05:04Z
null
401qingkong
pytorch/pytorch
22,731
How to convert at::Tensor (one element) type into a float type in c++ libtorch?
When I take an element A (eg: x[1][2][3][4], also type at::Tensor) from a four-dimensional variable x(at::Tensor), I want to compare (or multiply) A and B (float type) , how do I convert A (at::Tensor) to float? Thanks a lot!
https://github.com/pytorch/pytorch/issues/22731
closed
[]
2019-07-11T05:33:49Z
2023-06-16T06:44:22Z
null
FightStone
pytorch/pytorch
22,709
[docs] Unclear how to use pixel_shuffle
## 📚 Documentation The function is documented as taking no inputs, but uses inputs in the example. ![image](https://user-images.githubusercontent.com/5652049/61009358-6d63c400-a340-11e9-8633-7d798588089b.png)
https://github.com/pytorch/pytorch/issues/22709
closed
[ "module: docs", "triaged" ]
2019-07-10T22:28:19Z
2020-10-06T10:53:53Z
null
zou3519
pytorch/examples
590
Why normalize rewards?
In [line 75](https://github.com/pytorch/examples/blob/master/reinforcement_learning/actor_critic.py#L75) of actor-critic.py, there is a code that normalizes the rewards. However, we don't normalize the values returned from the critic. Why do we do this?
https://github.com/pytorch/examples/issues/590
closed
[]
2019-07-10T12:06:56Z
2022-03-09T23:58:34Z
1
ThisIsIsaac
pytorch/tutorials
553
improve pytorch tutorial for Data Parallelism
in this tutorial for data parallel ([link](https://pytorch.org/tutorials/beginner/blitz/data_parallel_tutorial.html)) it can be useful if you can add how to handle loss function for the case that we are using multiple gpus. usually naive way will cause unbalance gpu memory usage
https://github.com/pytorch/tutorials/issues/553
open
[]
2019-07-08T21:04:57Z
2021-10-28T13:15:08Z
3
isalirezag
pytorch/examples
586
syntax for evaluation mode on custom data?
I fine-tuned a model on a custom dataset that was pretrained with Imagenet. Now that I have the model and resulting best epoch in a pth file. What is the correct syntax for evaluation on the validation dataset using my new model. I know I need to set the '-e' flag, butI don't see how to point the script to my newly-tra...
https://github.com/pytorch/examples/issues/586
closed
[]
2019-07-06T16:41:18Z
2022-03-10T05:54:16Z
1
gbrow004
pytorch/pytorch
22,549
How to programmatically check PyTorch version
## 📚 Documentation [Minor minor detail] In the reproducibility section of the docs or in the FAQ, I would add a simple subsection/snippet of code to show how to programmatically check the running version of PyTorch. This can also encourage users to take into account heterogeneity of PyTorch versions in their cod...
https://github.com/pytorch/pytorch/issues/22549
closed
[ "module: docs", "triaged", "enhancement" ]
2019-07-05T15:02:31Z
2019-11-16T11:55:47Z
null
srossi93
pytorch/xla
803
How to monitor the TPU utilization and memory usage when training?
https://github.com/pytorch/xla/issues/803
closed
[ "question" ]
2019-07-05T11:19:51Z
2021-11-15T18:12:41Z
null
anhle-uet
pytorch/xla
802
Is there any detailed document on how to build and train Pytorch network on TPU?
Hi, I couldn't find any detailed guide or tutorial on how to use this project. Could you point me out some? Thanks a lot!
https://github.com/pytorch/xla/issues/802
closed
[]
2019-07-05T05:27:11Z
2019-07-05T05:46:57Z
null
anhle-uet
pytorch/examples
584
in DCGAN example, Why do we need to make netD inference twice?
To my understanding, the two lines nearly have the same functionality (same input, same output) except in the first inference `fake` is detached. https://github.com/pytorch/examples/blob/1de2ff9338bacaaffa123d03ce53d7522d5dcc2e/dcgan/main.py#L229 https://github.com/pytorch/examples/blob/1de2ff9338bacaaffa123d03ce...
https://github.com/pytorch/examples/issues/584
closed
[]
2019-07-04T08:37:17Z
2022-03-10T00:37:26Z
7
DreamChaserMXF
pytorch/xla
797
How to use LR schedulers?
Can you provide an example of how to use torch.optim LR schedulers with Pytorch/XLA? I've been basing my code on the [test examples](https://github.com/pytorch/xla/tree/master/test), but not sure where to define the LR scheduler and where to step the scheduler since it looks like the optimizer is re-initialized each tr...
https://github.com/pytorch/xla/issues/797
closed
[]
2019-07-04T04:41:29Z
2019-07-10T05:32:16Z
null
brianhhu
pytorch/examples
582
[How to write nn.ModuleList() in Pytorch C++ API]
Hi, How can i write nn.Modulelist() using Pytorch C++? @goldsborough @soumith Any help would be great. Thank you
https://github.com/pytorch/examples/issues/582
open
[ "c++" ]
2019-07-03T05:55:19Z
2022-03-09T20:49:35Z
null
vinayak618
pytorch/xla
793
How to use a cluster of tpus?
Hi, The documentation described the use case with only one cloud tpu. However, in tensorflow it is possible to setup multiple TPU's via TPUClusterResolver. So, how to setup pytorch-xla for training on a multiple tpu devices?. In my case it is 25 preemptible v2-8 TPUs.
https://github.com/pytorch/xla/issues/793
closed
[]
2019-07-02T14:43:29Z
2019-07-10T05:37:19Z
null
Rexhaif
pytorch/tutorials
549
How to combine Rescale with other transforms.RandomHorizontalFlip?
I am following the tutorial, but meet the problem:` File "/home/swg/anaconda3/envs/pytorch/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 49, in __call__ img = t(img) File "/home/swg/anaconda3/envs/pytorch/lib/python3.6/site-packages/torchvision/transforms/transforms.py", line 448, in _...
https://github.com/pytorch/tutorials/issues/549
closed
[]
2019-07-01T09:47:31Z
2021-06-16T16:20:20Z
null
swg209
pytorch/pytorch
22,381
How to apply transfer learning for custom object detection ?
## ❓ Questions and Help Is there an example to apply transfer learning for **custom** object detection. [https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html](https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html) Reference:- https://www.learnopencv.com/faster-r-cnn-object-de...
https://github.com/pytorch/pytorch/issues/22381
closed
[ "triaged", "module: vision" ]
2019-06-30T16:44:47Z
2019-07-01T21:38:00Z
null
spatiallysaying
pytorch/tutorials
548
how to set two inputs for caffe2
when I try to run the model on mobile devices by ONNX, I read the code in official turorials as follow: `import onnx` `import caffe2.python.onnx.backend as onnx_caffe2_backend` `model = onnx.load("super_resolution.onnx")` `prepared_backend = onnx_caffe2_backend.prepare(model)` `W = {model.graph.input[0].name: x....
https://github.com/pytorch/tutorials/issues/548
closed
[]
2019-06-30T11:55:22Z
2019-07-31T05:11:54Z
null
mmmmayi
huggingface/transformers
739
where is "pytorch_model.bin"?
https://github.com/huggingface/transformers/issues/739
closed
[ "wontfix" ]
2019-06-28T15:09:50Z
2019-09-03T17:19:30Z
null
jufengada
pytorch/examples
579
Implementing some C++ examples
Hi @soumith I want to implement some examples for C++ side. I want to start with an example of loading dataset with OpenCV and another example for RNN. There is this [PR](https://github.com/pytorch/examples/pull/506) but it is not active and the example doesn't contain training. Should I write one myself?
https://github.com/pytorch/examples/issues/579
open
[ "c++" ]
2019-06-27T07:14:40Z
2022-03-09T20:49:35Z
4
ShahriarRezghi
pytorch/pytorch
22,290
How to define a new backward function in libtorch ?
## ❓Is it possible to define a backward function libtorch ? ### In pytorch, a new backward function can be defined ` class new_function(torch.autograd.Function): def .... def forward(self,...) def backward(self, ...) ` However, in libtorch, how to define a new backward ...
https://github.com/pytorch/pytorch/issues/22290
closed
[ "module: cpp", "triaged" ]
2019-06-27T03:05:20Z
2019-06-29T05:13:07Z
null
buduo15
pytorch/pytorch
22,249
How to convert pytorch0.41 model to CAFFE
https://github.com/pytorch/pytorch/issues/22249
closed
[]
2019-06-26T03:25:03Z
2019-06-26T03:28:12Z
null
BokyLiu
pytorch/tutorials
543
Can I translate this tutorial and make a book?
Hello sir, As the title says, can I translate this whole tutorial into S.Korean and make a book? I've noticed that this project is BSD licensed but the first thing to do will be asking you for permission. It would be a great & fun job for me and I'm in a plan to donate the book royalty to charity.
https://github.com/pytorch/tutorials/issues/543
closed
[]
2019-06-24T12:49:48Z
2019-08-20T11:03:06Z
0
amsukdu
pytorch/examples
578
DCGAN BatchNorm initialization weight looks different
Hi there, I used the `torch.utils.tensorboard` to watch the weight/grad when training the DCGAN example on MNIST dataset. In the DCGAN example, we use the normal distribution to initialize both the weight of Conv and BatchNorm. However, I find it is strange when I visualize the weight of them. In the following fi...
https://github.com/pytorch/examples/issues/578
open
[ "question" ]
2019-06-22T09:51:44Z
2022-03-10T05:48:52Z
0
daa233
pytorch/tutorials
541
Sphinx error (builder name data not registered)
Notebooks for beginner and intermediate tutorials have been generated fine. When building advanced tutorial I have problems: 1) need to install torchaudio in a hard way (no easy way, need to compile from sources and hack some command to be completed, but checked - python can import torchaudio); 2) when running "make d...
https://github.com/pytorch/tutorials/issues/541
closed
[]
2019-06-22T01:29:50Z
2021-06-16T16:27:17Z
2
olegmikul
pytorch/tutorials
539
how to create custom dataloader for with labels of varying length?
My image labels are in .csv format and it has labels in varying order. ![Screenshot_2019-06-20 transferl(1)](https://user-images.githubusercontent.com/17276742/59912925-66b7f000-9417-11e9-95a3-1aca37c4d88b.png) i have created custom dataset. My labels are in separate csv files and they have varying length. I have ...
https://github.com/pytorch/tutorials/issues/539
closed
[]
2019-06-21T11:33:27Z
2021-07-30T22:48:21Z
null
nisnab
huggingface/neuralcoref
175
what version of python is required to run the script ?
I did try to run the script as described in CoNLL 2012 to produce the *._conll files. However without any success. the command: skeleton2conll.sh -D [path_to_ontonotes_train_folder] [path_to_skeleton_train_folder] always returns that "please make sure that you are pointing to the directory 'conll-2012'" I did all...
https://github.com/huggingface/neuralcoref/issues/175
closed
[ "training", "usage" ]
2019-06-20T16:01:14Z
2019-09-26T12:31:16Z
null
dtsonov
pytorch/tutorials
535
Under which license are the images?
Hi, Under which license are the style and content images? I want to use your tutorial in an open source repository and wonder if the images won't change the license of my repo. Thanks!
https://github.com/pytorch/tutorials/issues/535
open
[]
2019-06-19T12:21:57Z
2019-06-19T12:21:57Z
0
HyamsG
pytorch/pytorch
21,962
How to deploy pytorch???
How to deploy pytorch???
https://github.com/pytorch/pytorch/issues/21962
closed
[]
2019-06-19T08:47:10Z
2019-06-19T14:22:20Z
null
yuanjie-ai
pytorch/pytorch
21,945
how to use mkl-dnn after installing by conda?
## ❓ Questions and Help ### Please note that this issue tracker is not a help form and this issue will be closed. We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum: - [Discussion Forum](https://discuss.pytorch.org/)...
https://github.com/pytorch/pytorch/issues/21945
closed
[]
2019-06-19T02:53:45Z
2019-06-20T21:57:03Z
null
HITerStudy
huggingface/neuralcoref
172
Accuracy Report of model
Hi, I am doing a research on co-reference resolution and comparing different models currently available. I have been looking for an accuracy measure of your model but couldn't find it in your GitHub Repo. description nor in your medium blog. Can you report how much accuracy (F1/Precision/Recall) have you achieved u...
https://github.com/huggingface/neuralcoref/issues/172
closed
[ "question", "wontfix", "perf / accuracy" ]
2019-06-18T07:26:35Z
2019-10-16T08:48:23Z
null
uahmad235
pytorch/pytorch
21,630
How to accerlate dataloader?
how to accelerate dataloader? When we load data like : for i, data in enumerate(dataset): data.to(gpu) if we transfer data to gpu, the operation takes a lot of time. how can we get data stored in gpu directly? Or any other ways to accelerate the dataloader
https://github.com/pytorch/pytorch/issues/21630
closed
[]
2019-06-11T14:19:14Z
2019-06-11T18:57:33Z
null
luhc15
pytorch/pytorch
21,583
where is boradcast.h after installation caffe2
I'm trying to run cpp program with caffe2 in ubuntu 16.04. I installed caffe2 according to the official guide and checked that it is working properly. In my case, I linked caffe2 & c10 libs and set include dir as `/usr/local/lib/python*.*/dist-packages/torch/include/` Then I confronted with below error. ```bash ...
https://github.com/pytorch/pytorch/issues/21583
closed
[ "caffe2" ]
2019-06-10T08:11:43Z
2020-04-17T07:52:10Z
null
helloahn
pytorch/pytorch
21,571
How to retrieve hidden states for all time steps in LSTM or BiLSTM?
How to retrieve hidden states for all time steps in LSTM or BiLSTM?
https://github.com/pytorch/pytorch/issues/21571
closed
[]
2019-06-09T08:49:29Z
2019-06-09T22:12:28Z
null
gongel
pytorch/pytorch
21,551
How to disable MKL-DNN 64-bit compilation?
My build from current source on RPi 3B fails because the compilation is selecting the 64-bit option for the Intel MKL-DNN library. Is there an _option/flag_ to disable this selection during the **make** process? Thanks. ``` -- MIOpen not found. Compiling without MIOpen support % Total % Received % Xferd A...
https://github.com/pytorch/pytorch/issues/21551
closed
[ "module: build", "triaged", "module: mkldnn" ]
2019-06-08T00:25:42Z
2019-09-10T08:46:33Z
null
baqwas
pytorch/pytorch
21,477
Not obvious how to install torchvision with PyTorch source build
Previously, it used to be possible to build PyTorch from source, and then `pip install torchvision` and get torchvision available. Now that torchvision is binary distributions, this no longer works; to make matters worse, it explodes in non-obvious ways. When I had an existing install of torchvision 0.3.0, I got thi...
https://github.com/pytorch/pytorch/issues/21477
open
[ "triaged", "module: vision" ]
2019-06-06T18:04:12Z
2019-06-11T22:10:40Z
null
ezyang
pytorch/pytorch
21,456
Where is the algorithm for conv being selected?
## ❓ Questions and Help ### Please note that this issue tracker is not a help form and this issue will be closed. We have a set of [listed resources available on the website](https://pytorch.org/resources). Our primary means of support is our discussion forum: - [Discussion Forum](https://discuss.pytorch.org/)...
https://github.com/pytorch/pytorch/issues/21456
closed
[ "triaged" ]
2019-06-06T11:25:27Z
2019-07-04T14:23:56Z
null
snippler
pytorch/examples
571
why only save the rank 0 model when use distributeddataparallel?
hi, should we save all the model in different rank when we use the distributeddataparallel? different rank seems do not share the same bn parameters. do we need to save all the model in different rank? Thanks very much!
https://github.com/pytorch/examples/issues/571
open
[ "distributed" ]
2019-06-05T03:30:59Z
2022-03-10T00:12:25Z
0
v-wewei
pytorch/examples
570
Why there is no tanh activation at the end of TransformerNet?
In Fast Style Transfer, it seems like there is no tanh layer at the end of TransformerNet model. There is no gurantee that output values fti in certain range e.g. [0, 1] for PIL image. Using only deconv is also valid? How does it work?
https://github.com/pytorch/examples/issues/570
open
[ "good first issue" ]
2019-06-03T06:10:19Z
2022-03-10T00:08:18Z
0
DongHwanJang
pytorch/examples
568
Use official dataset for ImageNet?
As of version `0.3.0`, `torchvision` [officially supports](https://github.com/pytorch/vision/blob/v0.3.0/torchvision/datasets/imagenet.py) the `ImageNet` dataset. Do we want to use it in the corresponding example? ### Cons - We break backward compatibility for earlier `torchvision` versions ### Pros - We ...
https://github.com/pytorch/examples/issues/568
closed
[]
2019-05-31T13:51:39Z
2022-03-10T00:34:59Z
1
pmeier
pytorch/tutorials
517
The pipelined example of model_parallel_tutorial.py got worse performance
I download the example model_parallel_tutorial.py and execute it on my server. However the results don't match the results in the tutorial. I make sure the two GPUs are dedicate to the example. Is there any missed condition? Note. The two GPUs are Telsa P100 connected with NVLINK. ![mp_vs_rn](https://user-images.gi...
https://github.com/pytorch/tutorials/issues/517
closed
[]
2019-05-30T10:31:21Z
2019-05-30T13:52:59Z
2
cofiiwu
pytorch/pytorch
21,117
How to open "USE_LMDB" by install from source code
## 📚 Documentation linux : ubuntu 16.04 I follow the [doc](https://github.com/pytorch/pytorch#from-source) to install pytorch form source code. But I don't know how to change the install config, I want to open the "USE_LMDB". I run this cmd: ``` export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which cond...
https://github.com/pytorch/pytorch/issues/21117
closed
[]
2019-05-30T03:32:20Z
2019-05-31T02:19:32Z
null
daohu527
pytorch/pytorch
21,060
What is Mac system requirement to install caffe2?
Hi, @ezyang @apaszke @neoinmtv @soumith what is the Mac machine requirements to install caffe2? I have Mac mini with 500GB storage, 4GB RAM, and Intel Core i5 processor. is it possible to install caffe2 on my Mac mini? > OS: MacOS Mojave 10.14.2 > Processor: Intel Core i5 2.5 GHz > Graphics: Intel HD Graphics 4...
https://github.com/pytorch/pytorch/issues/21060
closed
[]
2019-05-29T11:24:04Z
2019-05-29T23:02:59Z
null
notebookdata
pytorch/pytorch
21,015
How to use Infiniband for cpu-cluster with backend gloo?
Now I'm trying to build pytorch from source for my cpu-cluster with backend gloo. After installing pytorch, I got this information from install summay: ``` -- USE_DISTRIBUTED : True -- USE_MPI : ON -- USE_GLOO : ON -- USE_GLOO_IBVERBS : 1 ``` In my cluster, the ...
https://github.com/pytorch/pytorch/issues/21015
open
[ "oncall: distributed", "triaged" ]
2019-05-28T11:41:53Z
2019-07-26T02:26:22Z
null
sth1997
pytorch/pytorch
20,993
The true value is not what it looks like
## 🐛 Bug The true value of the element of tensor seems not to be what it looks like and what it should be. The debuger shows that a variable x is 1.0000, while `torch.sqrt(1.0 - torch.pow(x, 2))` is nan and `x > 1` is true. What's worse, some other 1.0000 variable shows the opposite. They are all produced by com...
https://github.com/pytorch/pytorch/issues/20993
closed
[]
2019-05-27T18:33:45Z
2019-05-29T23:23:43Z
null
Woolseyyy
pytorch/pytorch
20,988
How to do matrix multiplication between two 2D sparse directly and quickly
## 🚀 Feature I want a function like torch.sparse.mm(sparse_matrix1, sparse_matrix2) ## Motivation I know torch.sparse.mm(sparse_magrix1, sparse_matrix2.to_dense()) , but this will spend a lot of memory when sparse_matrix2's shape is large.
https://github.com/pytorch/pytorch/issues/20988
closed
[ "module: sparse", "triaged" ]
2019-05-27T15:46:32Z
2021-01-04T17:58:49Z
null
Louis-udm
pytorch/pytorch
20,902
How to speed up the TorchScipt code ?
## ❓ Questions and Help Hi! Recently I use the TorchScipt Module to produce the serialized model, then, I loaded the pt and predict the input, but I find it still at a low speed? Is that any tools or method to speed up?
https://github.com/pytorch/pytorch/issues/20902
closed
[]
2019-05-24T09:01:56Z
2019-05-24T13:59:03Z
null
JiYuanFeng
pytorch/pytorch
20,705
How to reserve negative values of features extracting by register_forward_hook?
I am trying to extract features of a certain layer of a pretrained model. The fellowing code does work, however, the values of template_feature_map changed and I did nothing of it. vgg_feature = models.vgg13(pretrained=True).features template_feature_map=[] def save_template_feature_map(self, input, ou...
https://github.com/pytorch/pytorch/issues/20705
closed
[]
2019-05-20T17:04:31Z
2019-05-20T18:40:27Z
null
iminfine
pytorch/pytorch
20,627
How to transfer tf.layers.dense to pytorch?
How to transfer tf.layers.dense to pytorch? ~~~ tf.layers.dense(post_outputs, hp.num_freq) ~~~
https://github.com/pytorch/pytorch/issues/20627
closed
[]
2019-05-17T04:40:19Z
2019-05-17T04:55:15Z
null
DonggeunYu
pytorch/pytorch
20,566
What is a C ++ torch api similar to the registor_hook function in Python?
I want to know the backward grdient value of a particular layer. In Python, there is a function called registor_hook. C ++ does not have the same function. Is there a similar method?
https://github.com/pytorch/pytorch/issues/20566
closed
[]
2019-05-16T02:27:37Z
2019-05-16T11:39:28Z
null
Navifra-Kerry
pytorch/examples
557
[ImageNet] Where is the checkpoint and best model?
I ran `main.py` as follows: `python main.py -a resnet50 --dist-url 'tcp://127.0.0.1:FREEPORT' --dist-backend 'nccl' --multiprocessing-distributed --world-size 1 --rank 0 [imagenet-folder with train and val folders]` I can't find any ckpt files or model files in the current directory. Somebodies have the same ...
https://github.com/pytorch/examples/issues/557
closed
[]
2019-05-10T08:36:12Z
2022-03-10T05:12:16Z
null
dqgdqg
huggingface/neuralcoref
162
Citation in publication
Can you provide an article so that this work can be cited?
https://github.com/huggingface/neuralcoref/issues/162
closed
[ "question", "wontfix" ]
2019-05-10T05:56:55Z
2019-10-16T08:47:51Z
null
pradipcyb
pytorch/pytorch
20,316
What is the meaning of such a formula in some functions
## 📚 Documentation What is the meaning of such a formula in some functions? Just like the formula in the following picture math:: v = \frac{v}{\max(\lVert v \rVert_p, \epsilon)}. ![image](https://user-images.githubusercontent.com/22348625/57455073-e8efb900-729c-11e9-895f-588ec050ed4b.png) Is my chrome lac...
https://github.com/pytorch/pytorch/issues/20316
closed
[]
2019-05-09T13:01:12Z
2019-05-09T14:22:28Z
null
heslowen