sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Transformer Lack of Embedding Layer and Positional Encodings
Labels: high priority,module: docs,feature,module: nn,triaged,needs design

The Transformer implementation docs (https://pytorch.org/docs/stable/nn.html?highlight=transformer#torch.nn.Transformer) state that they implement the original paper but fail to acknowledge that they don’t implement the following: 
* Layer Norm as the default normalization option. 
* Positional Encodings
* Embeddings before the encoding and decoding step 

It’s fine that these are all not implemented directly in the module but making it more clear that they aren’t and were in the original paper would be helpful. 

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @brianjo @mruberry @albanD @walterddr @bhosmer @cpuhrsch @anjali411 @zhangguanheng66 @jlin27
Repository: flutter
Issue: Convert existing Objective-C TUs to use ARC.
Labels: engine,P2,team-engine,triaged-engine

There is an unfortunate and confusing mix of TU's in the engine that use ARC and those that don't. Migration to ARC was not done on all TU's because of utility classes in FML that that were not ARC ready. We should just migrate to ARC fully. There are too many Objective-C TUs in the engine so the migration should not be super painful.
Repository: pytorch
Issue: subprocess.CalledProcessError: Compile source in NVIDIA TX2
Labels: module: build,module: cuda,triaged

## ❓ Questions and Help

### I got some error when compile from source : after enter "python3 setup.py build" , the error displayed.

- **Environment：Jatpack 3.1  cuda 8.0 cudnn6.0.1 python3.5**

- Here is the full log:

Building wheel torch-1.3.0a0+354ecc4
-- Building version 1.3.0a0+354ecc4
cmake -GNinja -DBUILD_PYTHON=True -DBUILD_TEST=True -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/home/nvidia/usb_disk/pytorch/torch -DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages -DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m -DPYTHON_LIBRARY=/usr/lib/libpython3.5m.so.1.0 -DTORCH_BUILD_VERSION=1.3.0a0+354ecc4 -DUSE_CUDA=True -DUSE_DISTRIBUTED=True -DUSE_NUMPY=True /home/nvidia/usb_disk/pytorch
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Failed
CMake Error at cmake/MiscCheck.cmake:52 (message):
  Could not run a simple program built with your compiler.  If you are trying
  to use -fsanitize=address, make sure libasan is properly installed on your
  system (you can confirm if the problem is this by attempting to build and
  run a small program.)
Call Stack (most recent call first):
  CMakeLists.txt:294 (include)


-- Configuring incomplete, errors occurred!
See also "/home/nvidia/usb_disk/pytorch/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/usb_disk/pytorch/build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
  File "setup.py", line 756, in <module>
    build_deps()
  File "setup.py", line 321, in build_deps
    cmake=cmake)
  File "/home/nvidia/usb_disk/pytorch/tools/build_pytorch_libs.py", line 60, in build_caffe2
    rerun_cmake)
  File "/home/nvidia/usb_disk/pytorch/tools/setup_helpers/cmake.py", line 314, in generate
    self.run(args, env=my_env)
  File "/home/nvidia/usb_disk/pytorch/tools/setup_helpers/cmake.py", line 143, in run
    check_call(command, cwd=self.build_dir, env=env)
  File "/usr/lib/python3.5/subprocess.py", line 581, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-GNinja', '-DBUILD_PYTHON=True', '-DBUILD_TEST=True', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=/home/nvidia/usb_disk/pytorch/torch', '-DCMAKE_PREFIX_PATH=/usr/lib/python3/dist-packages', '-DNUMPY_INCLUDE_DIR=/usr/lib/python3/dist-packages/numpy/core/include', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.5m', '-DPYTHON_LIBRARY=/usr/lib/libpython3.5m.so.1.0', '-DTORCH_BUILD_VERSION=1.3.0a0+354ecc4', '-DUSE_CUDA=True', '-DUSE_DISTRIBUTED=True', '-DUSE_NUMPY=True', '/home/nvidia/usb_disk/pytorch']' returned non-zero exit status 1
Repository: scrcpy
Issue: REQUEST: can you please add virtual navigation
Labels: feature request

can you please add an option for virtual navigation ?? i'm using gesture navigation mode on my MIUI 10 .. it's very hard to draw those gestures with mouse or touch-pad and i don't want to switch from full-screen mode on my phone. thanks in advance :)
Repository: pytorch
Issue: PyTorch 1.2 'module' object has no attribute 'BFloat16StorageBase'
Labels: triaged,module: undefined reference,module: vision

I installed PyTorch 1.2 from pip:
`pip2 install torch torchvision --user`

Then when I import torch, it got the following error:
`Python 2.7.12 (default, Nov 12 2018, 14:36:49) `
`[GCC 5.4.0 20160609] on linux2`
`Type "help", "copyright", "credits" or "license" for more information.`

`>>> import torch`
`Traceback (most recent call last):`
 ` File "<stdin>", line 1, in <module>`

`File "/home/in4ight/.local/lib/python2.7/site-packages/torch/__init__.py", line 228, in <module>`
 `class BFloat16Storage(_C.BFloat16StorageBase, _StorageBase):`

`AttributeError: 'module' object has no attribute 'BFloat16StorageBase'`
Repository: pytorch
Issue: NetworkX's Version
Labels: caffe2

## 📚 Documentation

I wonder if this is still the case:
https://github.com/pytorch/pytorch/blob/dfdb86a59577d8b0fc4565988a8ac01b5ecd339f/docker/caffe2/jenkins/common/install_python.sh#L143-L146

I tried the latest nextworkx for memonger and haven't hit an issue so far.
Repository: pytorch
Issue: Gloo scatter gives wrong result for stride != 1
Labels: oncall: distributed,module: bootcamp,triaged

## 🐛 Bug

`torch.distributed.scatter` on Gloo backend gives wrong result if input tensor stride != 1.

## To Reproduce

On worker 0:

```python
import torch.distributed
torch.distributed.init_process_group('gloo', world_size=2, rank=0, init_method='file:///tmp/pt-dist')
out = torch.zeros([3])
torch.distributed.scatter(out, [torch.linspace(0, 5, 6)[::2]]*2, 0)
print(out) # tensor([0., 1., 2.])
```

On worker 1:

```python
import torch.distributed
torch.distributed.init_process_group('gloo', world_size=2, rank=1, init_method='file:///tmp/pt-dist')
out = torch.zeros([3])
torch.distributed.scatter(out, [], 0)
print(out) # tensor([0., 1., 2.])
```

## Expected behavior

```
tensor([0., 2., 4.])
```

## Environment

PyTorch version: 1.2.0
Is debug build: No
CUDA used to build PyTorch: 10.0.130

OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
CMake version: version 3.10.2

Python version: 3.6
Is CUDA available: No
CUDA runtime version: No CUDA
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA

Versions of relevant libraries:
[pip3] numpy==1.16.4
[pip3] torch==1.2.0
[pip3] torchvision==0.4.0
[conda] Could not collect


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera
Repository: vscode
Issue: [css] code completion for gradient functions
Labels: feature-request,css-less-scss

There is no code hint when VSCode edits the `linear-gradient`, `radial-gradient` function of the CSS `background-image` property.

- VSCode Version: 1.36.1
- OS Version: Windows 10

Reproduce steps:

1. Open a CSS file
2. Edit the `background-image` property and write the `linear-gradient` function.
3. Write code in parentheses only highlights without code hints

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

![2019-08-19-17](https://user-images.githubusercontent.com/24560368/63252735-ee4c9e80-c2a2-11e9-97d5-a716bdecdf0e.gif)

---

The above is Google Translate, the original is as follows

# CSS background-image 属性代码提示有点问题

在 VSCode 编辑 CSS `background-image` 属性的 `linear-gradient`, `radial-gradient` 函数时，没有任何代码提示。

- VSCode Version: 1.36.1
- OS Version: Windows 10

重现步骤:

1. 打开一个 CSS 文件
2. 编辑 `background-image` 属性，写上 `linear-gradient` 函数
3. 在括号内写代码只有高亮而没有代码提示
Repository: angular
Issue: Only partial bootstrap without warning when using `ngDoBootstrap()` and `@NgModule.bootstrap` components
Labels: hotlist: error messages,area: core,state: confirmed,P4

# 🐞 bug report

### Is this a regression?
No, I don't think so.

### Description
Only partial bootstrap happens while using bootstrap for entry-components in hybrid app. It looks like `ngDoBootstrap` is being ignored while `AppModule` contains entry in `bootstrap` but tit also depends how do we use `bootstrapModule()`.
Is it intended behaviour? If so, please document this in [upgrade guid](https://angular.io/guide/upgrade).

This should be fixed/simplified while keeping in mind:
- Ability to render standalone Angular component without having it to be downgraded 
- Ability to render downgraded Angular component (as it is now)

## 🔬 Minimal Reproduction
### Bootstraps both frameworks, renders both AngularJS and Angular components with downgrading
```typescript
ng1Module.directive("appComponent", downgradeComponent({ component: AppComponent }));

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    UpgradeModule
  ],
  providers: [],
  entryComponents: [
    AppComponent
  ]
})
export class AppModule {
  public constructor(private upgrade: UpgradeModule) {}
  public ngDoBootstrap(): void {
    this.upgrade.bootstrap(document.documentElement, ["ng1Module"], { strictDi: true });
  }
}

platformBrowser().bootstrapModule(AppModule);
```
### Bootstraps only Angular, only one component is being rendered
```typescript
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    UpgradeModule
  ],
  providers: [],
  bootstrap: [
    AppComponent
  ]
})
export class AppModule {
  public constructor(private upgrade: UpgradeModule) { }
  public ngDoBootstrap(): void {
    // Ignored?
    this.upgrade.bootstrap(document.documentElement, ["ng1Module"], { strictDi: true });
  }
}

platformBrowser().bootstrapModule(AppModule);
```
### Bootstraps both frameworks, renders both AngularJS and Angular components without downgrading
```typescript
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    UpgradeModule
  ],
  providers: [],
  bootstrap: [
    AppComponent
  ]
})
export class AppModule {
  public constructor(private upgrade: UpgradeModule) { }
  public ngDoBootstrap(): void {
    // Obsolete because its being ignored?
    this.upgrade.bootstrap(document.documentElement, ["ng1Module"], { strictDi: true });
  }
}

platformBrowser().bootstrapModule(AppModule).then((platformRef) => {
  const upgrade = platformRef.injector.get(UpgradeModule);
  upgrade.bootstrap(document.documentElement, ["ng1Module"], { strictDi: true });
});
```
## 🌍  Your Environment

**Angular Version:**
<pre><code>
@angular/animations@8.2.2
@angular/common@8.2.2
@angular/compiler@8.2.2
@angular/core@8.2.2
@angular/forms@8.2.2
@angular/platform@ser": "~8.2.2
@angular/platform@ser-dynamic": "~8.2.2
@angular/router@8.2.2
@angular/upgrade@8.2.2
</code></pre>
Repository: terminal
Issue: Figure out what to do with keybindings whose characters could be triggered by multiple VKs
Labels: Issue-Feature,Help Wanted,Area-Input,Product-Terminal

I tried to map ctrl+shift+| for vertical split but keybinding changed to \\(but everything works correctly) additionally i have second backslash button between left shift and z key and using this key combination doesn't work.

# Environment

Windows build number: 10.0.18963.0
Windows Terminal version (if applicable): 0.3.2171.0
Keyboard: Logitech K280e

# Steps to reproduce

1. Add binding:
`{
                "command" : "splitVertical",
                "keys" : 
                [
                    "ctrl+shift+|"
                ]
            },`
2. Save and close settings
3. Close Terminal
4. Open Terminal and settings
5. Binding looks like this:
`{
                "command" : "splitVertical",
                "keys" : 
                [
                    "ctrl+shift+\\"
                ]
            },`

No matter what during this steps left backslash never works.


# Expected behavior

Keep original symbol and accept left backslash key as trigger.
Repository: rust
Issue: Unhelpful error message E0505 for self-referencing lifetime constraint
Labels: C-enhancement,A-diagnostics,A-lifetimes,A-borrow-checker,T-compiler

Given the following code:
```rust
trait Handler {}
struct Easy2<H: Handler>(H);

struct Context<'r>(Option<&'r [u8]>);
impl<'r> Handler for &'r mut Context<'r> {}

fn perform<'a>(ctx: &'a mut Context<'a>) {
    Easy2(ctx);
}
fn build_response(_ctx: Context) {}

fn call() {
    let mut ctx = Context(None);
    perform(&mut ctx);
    build_response(ctx);
}
```

Rust reports:
```
error[E0505]: cannot move out of `ctx` because it is borrowed
  --> src/lib.rs:15:20
   |
14 |     perform(&mut ctx);
   |             -------- borrow of `ctx` occurs here
15 |     build_response(ctx);
   |                    ^^^
   |                    |
   |                    move out of `ctx` occurs here
   |                    borrow later used here
```

This seems to be a confusing error, and doesn't help diagnosing where the problem is. The real fix here is to remove the lifetime annotations on `perform` and have `impl Handler` use different lifetimes for the two places, but this is totally unobvious from the error message.

It might be more helpful if it can point out that this is still borrowed because `ctx` forms a self-reference due to `<'a>(ctx: &'a mut Context<'a>)` and the field.

And it might also be useful to warn `impl<'r> Handler for &'r mut Context<'r>`. I'm not sure whether a declaration like this where self-reference can arise has any legit use cases. It might be helpful to suggest people giving them two different lifetimes.
Repository: rust
Issue: Type inference fail in a closure
Labels: A-closures,T-compiler,A-inference,C-bug

Let's have a look at two similar closures:
```rust
fn foo(v: &Vec<i32>) -> i32 {
    let x: usize = 0;
    let condition = |idx| v[idx] > 0;
    if condition(x) {0} else {1}
}

fn bar(v: &Vec<(i32, i32)>) -> i32 {
    let x: usize = 0;
    let condition = |idx| v[idx].0 > 0;
    if condition(x) {0} else {1}
}
```

The first one is successfully compiled, but the second one requires additional type annotations: [playground 4](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=348436b25088e1bf3e53c52401aff118)

It seems that there is enough information for fully automatic type inference in both cases. Is it a compilation bug then?
Repository: scrcpy
Issue: Request: when an emulator is running, and a device is connected, still auto-use the device
Labels: feature request

In this case it doesn't make sense that scrcpy will try to connect to the emulator. It should connect automatically directly to the device.
Repository: godot
Issue: Visual script: Class Constant list does not include Input
Labels: bug,confirmed,topic:visualscript

**Godot version:**
v3.1.stable.official

**OS/device including version:**
Windows 10 Enterprise 10.0.17134 Build 17134

**Issue description:**
I created a Class Constant node to get access to the MouseMode enum in the Input class, the Input class does not show up on the list even though Performance does for example.

**Steps to reproduce:**
Create a Visual Script
Create a Class Constant node
Click Base Type in the inspector with the node selected
Search for Input and see it isn't there
Repository: flutter
Issue: Setting Google Maps key in Runtime
Labels: c: new feature,p: maps,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

## Use case
I have an app that should show a map for different clients by a white label application.
But I need to use a different key for each white-labeled app 

## Proposal
1-Simple solution: add documentation for white label google maps key and SHA-1
2-Half solution: in iOS, it could be programmatically 
3-You talk to Android Maps developers to support runtime key in SKD beta 3
Repository: youtube-dl
Issue: Vider support
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2019.08.13. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2019.08.13**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://vider.info/vid/+fn11es1
- Single video (embed): https://vider.info/embed/video/n11es1


## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Hello,
Please add support for vider.info,
Thx
Repository: flutter
Issue: Textfield in Drawer is hidden behind keyboard when in focus
Labels: a: text input,framework,f: material design,f: scrolling,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-design,triaged-design

In this video, I click on the password text field. 
https://youtu.be/-q6xS5Q3CKo
Repository: pytorch
Issue: Improve binary release for PyTorch domain library
Labels: module: binaries,triaged,better-engineering

## 🚀 Feature
Based on the retro meeting following PyTorch 1.2.0 release, the team agreed to improve binary release process across PyTorch domain libraries: 
+ torchvision @fmassa 
+ torchtext @zhangguanheng66
+ torchaudio @vincentqb @jamarshon

A few general points:
+ Clear timeline for release to avoid the last minute stress.
+ Unified release scripts for domain libraries. Some common scripts could stay in the repo and are checked out for release branches.
+ Ship nightlies in the future?
+ Standardize the binary testing with a test suite
+ A general guideline for testing quality

Binary release for Windows
+ Better binary support for torchvision. Support Windows for torchtext, torchaudio
+ The Windows binary is actually under high demand, based on the feedback from torchvision
+ Nightlies?

CC @soumith @cpuhrsch @ezyang @peterjc123 


cc @ezyang
Repository: react
Issue: DevTools: An easier way to see all siblings
Labels: Type: Enhancement,Component: Developer Tools,React Core Team

I have a particular pattern that I struggle with when navigating deep trees in devtools: I want to see all siblings of a node together.

Say I'm in the middle of something and I wonder what are all nodes on the same level. It's super hard to actually get to that state. I wonder if we could tweak "left" button to do that as an intermediate state.

* first press: collapse the current node
* second press: collapse all siblings (new)
* third press: move to the parent

Maybe this is too crazy :-) Or maybe there's another mechanic that can achieve the same effect. The goal here is to be able to make sense of the tree structure by going _upwards_. Currently implementation details of children prevent me from seeing it. (At least, with the "expand" mode on — which is now on by default.)

---
Originally reported by @gaearon via https://github.com/bvaughn/react-devtools-experimental/issues/384
Repository: react
Issue: DevTools: Occasional FOUC when loading DevTools
Labels: Type: Bug,Component: Developer Tools,React Core Team

Seems to only happen the first time DevTools is opened after being installed (or perhaps the first time after the browser is opened).

---
Originally reported via https://github.com/bvaughn/react-devtools-experimental/issues/381
Repository: react
Issue: Remember saved component filters by url or in bookmarks
Labels: Type: Discussion,Component: Developer Tools,React Core Team

It would be cool if it will support saving filter based on url or some bookmarks. I think it will be really useful for switching between different projects. And seems that bookmarks is better solution because usually people have some different stages like production/pre-production/local development.

---
Originally reported by @7rulnik via https://github.com/bvaughn/react-devtools-experimental/issues/359
Repository: react
Issue: DevTools: React Native: Remember saved component filters between reloads
Labels: Type: Enhancement,Component: Developer Tools,React Core Team

DevTools v4 added a pretty powerful new component filtering feature that enables devs to filter out components by type, name, or file system location. Because these filters can be a bit elaborate to create, they are saved between sessions to improve dev experience.

**Unfortunately, I don't think I am going to be able to support the persistence functionality for React Native.** (In other words, filters will be forgotten each time you reload the app.)

The reason for this is a mix of timing and context. The biggest limiting factor is the lack of a synchronous storage option. React Native has a couple of faux sync storage options, but they just in-memory wrappers around an async storage layer and they require async initialization. That _could_ work if the React Native backend waited to initialize DevTools until it also initialized the async storage layer, _but_ this has implications on reload-and-profile support (#336).

---
Originally reported via https://github.com/bvaughn/react-devtools-experimental/issues/337
Repository: react
Issue: DevTools: React Native: Support reload-and-profile
Labels: Type: Enhancement,Component: Developer Tools,React Core Team

React DevTools v4 adds a new reload and profile feature to measure perf for application "mount" ([although it required a bit of hacking](https://github.com/bvaughn/react-devtools-experimental/pull/35)). I don't feel knowledgeable enough about React Native to tackle it, so my current plan is to just **not** support this feature for RN.

If we did decide to support it,I think we would need to solve the following:

1. A reload hook on the backend that worked for all bundle types (not just DEV).
2. Some assurance that the backend will be injected/initialized _before_ the first mount/commit (or a mechanism to delay the first commit, like we do in the browser).
3. Some way for third party code to request a production+profiling build ([similar to how DOM does it](https://fb.me/react-profiling)).
4. A sync storage mechanism (or some other way for DevTools could leave a flag for itself so it knows to begin profiling immediately after reload+connection).

---
Originally reported via https://github.com/bvaughn/react-devtools-experimental/issues/336