pytorch
Here are 18,971 public repositories matching this topic...
-
Updated
Dec 1, 2021 - Python
-
Updated
Dec 3, 2021 - Jupyter Notebook
-
Updated
Oct 16, 2021 - Python
-
Updated
Nov 29, 2021 - Jupyter Notebook
-
Updated
Dec 3, 2021 - Python
-
Updated
Dec 3, 2021 - JavaScript
🐛 Bug
When using a frozen dataclass to define a sample, an error is thrown.
File ".../python3.9/site-packages/pytorch_lightning/utilities/apply_func.py", line 146, in apply_to_collection
setattr(result, field_name, v)
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'x'
This only started happening in 1.5+, the snippet below runs
-
Updated
Nov 23, 2021 - Python
-
Updated
Oct 25, 2021 - Jupyter Notebook
-
Updated
Dec 3, 2021 - Python
-
Updated
Dec 3, 2021 - Python
Change tensor.data to tensor.detach() due to
pytorch/pytorch#6990 (comment)
tensor.detach() is more robust than tensor.data.
-
Updated
Dec 3, 2021 - C++
-
Updated
Oct 26, 2021 - Python
能出一个视频教程嘛
-
Updated
Nov 22, 2021
-
Updated
Aug 30, 2021 - Jupyter Notebook
-
Updated
Dec 3, 2021 - Python
New Operator
Describe the operator
Why is this operator necessary? What does it accomplish?
This is a frequently used operator in tensorflow/keras
Can this operator be constructed using existing onnx operators?
If so, why not add it as a function?
I don't know.
Is this operator used by any model currently? Which one?
Are you willing to contribute it?
-
Updated
Dec 3, 2021 - Python
Motivated by huggingface/transformers#12789 in Transformers, one welcoming change would be replacing assertions with proper exceptions. The only type of assertions we should keep are those used as sanity checks.
Currently, there is a total of 87 files with the assert statements (located under datasets and src/datasets), so when working on this, to manage the PR s
-
Updated
Dec 3, 2021 - Python
-
Updated
Dec 3, 2021 - Python
Is your feature request related to a problem? Please describe.
I typically used compressed datasets (e.g. gzipped) to save disk space. This works fine with AllenNLP during training because I can write my dataset reader to load the compressed data. However, the predict command opens the file and reads lines for the Predictor. This fails when it tries to load data from my compressed files.
-
Updated
Dec 4, 2021 - Python
-
Updated
Jul 25, 2021 - Jupyter Notebook
-
Updated
Mar 14, 2021 - Jupyter Notebook
Improve this page
Add a description, image, and links to the pytorch topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the pytorch topic, visit your repo's landing page and select "manage topics."


Currently, the
EncoderDecoderModelclass in PyTorch automatically creates thedecoder_input_idsbased on thelabelsprovided by the user (similar to how this is done for T5/BART). This should also be implemented forTFEncoderDecoderModel, because currently users should manually providedecoder_input_idsto the model.One can take a look at the TF implementation