sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: pytorch data_parallel oom on gpu:0
Labels: module: memory usage,triaged,module: data parallel

I try espnet(https://github.com/espnet/espnet) with pytorch(1.0.1.post2), the data_parallel interface is used as follows, however the GPU memory usage on gpu:0 gradually increases and finally OOM, I do not know what causes the problem, so I ask for help here. The revelant issue for espnet is here: https://github.com/espnet/espnet/issues/1225, the authors say they have no problem, but I just get stuck here. V100 16GB is used, cuda 10 and cudnn 7.4.2 is used.

the code from espnet/asr/pytorch_backend/asr.py: 
        train_iter = self.get_iterator('main')
        optimizer = self.get_optimizer('main')

        # Get the next batch ( a list of json files)
        batch = train_iter.next()
        # self.iteration += 1 # Increase may result in early report, which is done in other place automatically.
        x = self.converter(batch, self.device)

        # Compute the loss at this time step and accumulate it
        if self.ngpu == 0:
            loss = self.model(*x).mean() / self.accum_grad
        else:
            # apex does not support torch.nn.DataParallel
            loss = data_parallel(self.model, x, range(self.ngpu)).mean() / self.accum_grad
        if self.use_apex:
            from apex import amp
            # NOTE: for a compatibility with noam optimizer
            opt = optimizer.optimizer if hasattr(optimizer, "optimizer") else optimizer
            with amp.scale_loss(loss, opt) as scaled_loss:
                scaled_loss.backward()
        else:
            loss.backward()
        # gradient noise injection
        if self.grad_noise:
            from espnet.asr.asr_utils import add_gradient_noise
            add_gradient_noise(self.model, self.iteration, duration=100, eta=1.0, scale_factor=0.55)
        loss.detach()  # Truncate the graph

        # update parameters
        self.forward_count += 1
        if self.forward_count != self.accum_grad:
            return
        self.forward_count = 0
        # compute the gradient norm to check if it is normal or not
        grad_norm = torch.nn.utils.clip_grad_norm_(
            self.model.parameters(), self.grad_clip_threshold)
        logging.info('grad norm={}'.format(grad_norm))
        if math.isnan(grad_norm):
            logging.warning('grad norm is nan. Do not update model.')
        else:
            optimizer.step()
        optimizer.zero_grad()
Repository: TypeScript
Issue: Object with keys named after variables using [myVar] syntax breaks symbol lookup in TS 3.7.0-dev.20191002
Labels: Bug,Rescheduled

**TypeScript Version:**  3.7.0-dev.20191002

**Search Terms:** object keys key symbols found

**Code**

Open `Go to symbol in file` (or equivalent) for:
```ts
const foo = 'foo'
const bar = 'bar'
const obj = {
  [foo]: 'foo-value',
  [bar]: 'bar-value'
};
```

**Expected behavior:**

- foo
- bar
- obj

**Actual behavior:**

"No symbols found". Commenting one of the `[...]: '...'` lines fixes the issue.

Here's a screencast with 3.7.0-dev.20191002 in VSCode 1.39.0-insider 695ee74864ef93d10f5de0861cb66af190e76211 / 2019-10-02T08:56:32.907Z

![gotosymbol-broken-ts37](https://user-images.githubusercontent.com/522085/66070606-a23a7e00-e51f-11e9-8a79-8d39ad825671.gif)

**Regression window:** Somewhere in 3.7.0-dev. 3.6.3 bundled with VSCode works fine.

**Playground Link:** none, I wouldn't know how to trigger symbols listing there

**Related Issues:** none that I found
Repository: rust
Issue: Suggest .err().expect() if .expect_err() is not implemented
Labels: C-enhancement,T-compiler,A-suggestion-diagnostics,A-result-option

If `T` in `Result<T, _>` is not `fmt::Debug`, the following will fail to compile. The compiler rightfully blames `fmt::Debug` not being implemented for `Result<Foo, ()>`.

```rust
struct Foo;

Result::<Foo, _>::Err(()).expect_err("Foo!");
```

However, users may get stuck if they can't - for whatever reason - add `fmt::Debug`. A simple workaround is

```rust
Result::<Foo, _>::Err(()).err().expect("Foo!");
```

which has a somewhat degraded error message in the panic case, yet does what it's being asked for. Maybe the compiler could suggest that?
Repository: flutter
Issue: TextStyleTween has unexpected lerping behavior for underlines
Labels: c: new feature,framework,P2,team-framework,triaged-framework

When TextStyleTween is lerping between two TextStyles, one with and the other one without an underline, I expect it to provide fading transition on the underline. Currently, the underline suddenly appears/disappears in the middle of transition. 

## Steps to Reproduce

1. Define two text styles one with an underline and another one without an underline. You can use these samples that I'm actually using in my app:
```
static const sectionCurrent = TextStyle(
    color: ConstantColors.lightIndigo,
    fontFamily: ConstantFontFamilies.brandonTextBlack,
    letterSpacing: 0.5,
    fontSize: 13.0,
    decoration: TextDecoration.underline,
  );
  static const sectionFuture = TextStyle(
    color: ConstantColors.dusk50,
    fontFamily: ConstantFontFamilies.brandonTextBlack,
    letterSpacing: 0.5,
    fontSize: 13.0,
  );
```

2. Define a TextStyleTween for lerping between these two text styles.
3. Try lerping with different values and see that the underline appears/disappears suddenly in transitions instead of fading in/out.

## Flutter Doctor

```
[✓] Flutter (Channel stable, v1.9.1+hotfix.2, on Mac OS X 10.14.6 18G95, locale en-US)
    • Flutter version 1.9.1+hotfix.2 at /Users/behnam/dev/tools/flutter
    • Framework revision 2d2a1ffec9 (4 weeks ago), 2019-09-06 18:39:49 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/behnam/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.4

[✓] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 37.0.1
    • Dart plugin version 183.6270
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.38.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.4.1
```

## Example Output

Here is an actual recording showing the issue:

![](https://im3.ezgif.com/tmp/ezgif-3-92faa3e6dd32.gif)
Repository: flutter
Issue: Test external texture support using the Embedder unittests harness.
Labels: a: tests,engine,e: embedder,P2,team-engine,triaged-engine

There are currently not tests for this in either the embedder or shell unittests target. Not that both support OpenGL via SwiftShader, the requisite tests must be added.
Repository: flutter
Issue: Measure flutter tools memory usage
Labels: c: new feature,team,tool,c: performance,perf: memory,P3,team-tool,triaged-tool

Developers have complained that our tools or IDEs drain their host machine memory.

Our first step will be to measure the memory usage in our controlled lab environment to have a sense of the minimum memory needed to build and run a Flutter app.

Here's some draft drawings of what we'd like to measure:
![IMG_20191002_104856](https://user-images.githubusercontent.com/22987568/66080246-8ed8e400-e51a-11e9-8e8c-62cbcd16cf20.jpg)
Repository: rust
Issue: The `rustc_query_impl` crate is too big, which hurts compile times for the compiler itself
Labels: C-enhancement,I-compiletime,T-compiler,A-contributor-roadblock,A-query-system

EDIT(Centril): The crate was renamed to `rustc_middle` in https://github.com/rust-lang/rust/pull/70536.
EDIT(jyn514): Most of rustc_middle was split into `rustc_query_impl` in https://github.com/rust-lang/rust/pull/70951.

The [results](http://gistpreview.github.io/?74d799739504232991c49607d5ce748a) from @ehuss's new `cargo -Ztimings` feature really drive home how the size of the `rustc` crate hurts compile times for the compiler. Here's a picture:
![a](https://user-images.githubusercontent.com/1940286/66088923-64d9fd00-e5c0-11e9-9b9d-5508ace23331.jpeg)
Things to note.
- The `rustc` crate takes about twice as long to compile as the `rustc_mir` crate, which is the second-biggest crate.
- Sixteen dependent crates start and finish their entire compilation while the `rustc` crate's codegen is happening. (Thank goodness for pipelining, it really makes a difference in this case.)
- Almost 1/3 of the total build time occurs while building the `rustc` crate without anything else happening in parallel (from 42-67s, and from 141-174s).

Also, even doing `check` builds on `rustc` code is painful. On my fast 28-core Linux box it takes 10-15 seconds even for the first compile error to come up. This is much longer than other crates. Refactorings within the `rustc` crate that require many edit/compile cycles are painful.

I've been told that `rustc` is quite tangled and splitting it up could be difficult. That may well be true. The good news is that the picture shows we don't need to split it into 10 equal-sized pieces to get benefits. Even splitting off small chunks into separate crates will have an outsized effect on compilation times.
Repository: godot
Issue: .vs Visual Script file corrupting to RSCC
Labels: bug,topic:core,confirmed,topic:visualscript,high priority

___

***Bugsquad note:** This issue has been confirmed several times already. No need to confirm it further.*

___

**Godot version:**
3.1.1 and 3.2

**OS/device including version:**
Windows 10 and Mac OS 10.14.6

**Issue description:**
Visual Script files are becoming corrupted and the data disappears. This is bad because you lose your entire visual graph and there is no way to get it back. What happens is that when you open up one of the corrupted files a blank .vs file opens at the top of the list and the file itself opens in the code editor and just says "RSCC."

**Steps to reproduce:**
I am not sure exactly how to get the file to this state, but I have attached a minimal project below where there are 2 .vs files that are 1 version off of each other. I use Dropbox and so I can go back every time the file changes. One of the files doesn't corrupt (the one that has (1) at the end) and the other file will corrupt when you open up the file in GODOT. These files are 1 change apart from each other. So what ever I did to corrupt them I did right between. The next file (which I didn't include) is literally just RSCC with no other data in the file. Those 3 files all happened within minutes of each other.

I haven't been able to figure out exactly what causes the file to corrupt, but maybe someone smarter than me can see the difference between the two files and figure out what happened.

**Minimal reproduction project:** 
[InfiniteRunner copy.zip](https://github.com/godotengine/godot/files/3684303/InfiniteRunner.copy.zip)
Repository: rust
Issue: Add an unstable 'extra randomization' compile-time flag for hashers
Labels: A-testsuite,C-enhancement,T-compiler,T-bootstrap,C-feature-request,A-reproducibility

When working on https://github.com/rust-lang/rust/pull/64906, I ran into a latent dependency on the iteration order of a `HashMap`. This resulted in the PR becoming unmergeable - since a `FxHashMap` was being used, the iteration order ended up differing between platforms, which made it impossible to make the tests pass on all platforms.

It would be nice to have a way of exposing these kinds of hidden ordering dependencies before they result in blocked PRs.

I propose the following:

* Add a new feature called `randomize_iteration` to `std` and `fxhash`. When enabled, this feature will cause the iteration order of `iter` and `iter_mut` to be randomized *per call*.
* Add a `config.toml` key to enable both of these features.

This will allow producing a special build of the compiler that will (hopefully) expose many hidden ordering dependencies. The overhead could be very high, but that shouldn't matter too much - the only purpose of this build would be to run the testsuite.

Once std-aware Cargo is fully implement, we could consider making this usable by user-written crates (e.g. allowing people to opt-in to recompiling std in this mode).
Repository: pytorch
Issue: Add in-place view (view_)
Labels: triaged,function request,module: viewing and reshaping

## 🚀 Feature
Add support for an in-place version of the `view` operation called `view_`.

## Motivation

Often, view is used to manipulate an existing Tensor in the following way:

`x = x.view(...)`

Since this is such a standard use case, I think adding a `view_` function is useful:

`x.view_(...)`

This should be easy for pytorch users to digest, as many other `<func>_` functions exist that are less common that `view`. I apologize if this has been addressed before, but the word `view_` has not yet appeared in an issue. Looking at the current documentation for `view`, I see there may be a potential issue related to calling `contiguous`:

>  For a tensor to be viewed, the new view size must be compatible with its original size and stride, i.e., each new view dimension must either be a subspace of an original dimension, or only span across original dimensions 

I am not sure what this means -- is it related to calling `contiguous` after `permute`? Or something that can occur within a single `view` call?
Repository: storybook
Issue: [addon-docs] DocGen description are not displayed with StyledComponent
Labels: bug,react,has workaround,addon: docs,block: props

**Describe the bug**
Description related to the component or to the props are not displayed when component is based on StyledComponent.

**To Reproduce**
Steps to reproduce the behavior:
1. Create a component based on StyledComponent
2. Launch Storybook

**Expected behavior**
Should display description as expected

**Screenshots**
![image](https://user-images.githubusercontent.com/1861711/66110856-eed99400-e5c7-11e9-9f13-f384c08edad8.png)

**Code snippets**
```
import styled from 'styled-components'
import PropTypes from 'prop-types';

/**
* Use `A` to provide a regular link
*/
const A = styled('a')(
    {
        margin: '8px 0',
        outline: 'none'
    }
)

A.displayName = 'Link';
A.defaultProps = {
    children: 'This is a link'
};

A.propTypes = {
    /** That should be the clickable element */
    children: PropTypes.node.isRequired
};
export default A;
```


**System:**
System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
Binaries:
    Node: 12.4.0 - /usr/local/bin/node
    Yarn: 1.17.0 - /usr/local/bin/yarn
    npm: 6.11.3 - /usr/local/bin/npm
Browsers:
    Chrome: 77.0.3865.90
    Safari: 13.0.1
npmPackages:
    @storybook/addon-actions: ^5.2.1 => 5.2.1 
    @storybook/addon-docs: ^5.3.0-alpha.6 => 5.3.0-alpha.6 
    @storybook/addon-info: ^5.2.1 => 5.2.1 
    @storybook/addon-knobs: ^5.2.1 => 5.2.1 
    @storybook/addon-links: ^5.2.1 => 5.2.1 
    @storybook/addon-storysource: ^5.2.1 => 5.2.1 
    @storybook/addons: ^5.2.1 => 5.2.1 
    @storybook/react: ^5.2.1 => 5.2.1 

**Additional context**
Nothing special
Repository: opencv
Issue: Natural feature tracking(NFT)/ Feature Matching in videostream for Javascript
Labels: incomplete

Hello. I want to run Natural feature tracking(NFT) with video stream, it is possible with this lib?
Any example?
Repository: puppeteer
Issue: Feature Req: chrome context menu testing
Labels: feature,confirmed

I am developing a Chrome extension that makes extensive use of the context menu. Currently I am unable to test that with Puppeteer.
And Puppeteer is supposed to be an all-round solution for chrome testing, right?
So.. can we add this (and more generally - extension testing overall) to the roadmap?
Repository: scrcpy
Issue: [Feature Request] Copying files from Android to PC by invoking ACTION_GET_CONTENT intent and using adb pull
Labels: feature request

Is it possible to add a feature, such that when a specified keywords are pressed (ex: Ctrl + Shift + F) the scrcpy application running in Android device will invoke an intent to select a file name/content and then using the adb pull on the server/PC to save the selected file into PC.

Thank you.
Repository: PowerToys
Issue: Add Calendar Week Numbers to systray calendar 
Labels: Idea-New PowerToy

Some places use week numbers on their calendars as of right now the only way to get them on windows tray is to use third party calendars.
Repository: react
Issue: DevTools not properly shutting down between reloads in some cases
Labels: Component: Developer Tools,React Core Team

Noticed this while testing the recently added "highlight updates" feature. It seems like relying on the content script's "disconnect" to shutdown things is too late, and we seem to be leaving at least an `Agent` (possibly more) connected.

I think we may want to add some cleanup code to our initialization path (of the backend) to handle the case where a previous backend instance didn't get to finish shutting down.
Repository: flutter
Issue: Fix example tests and enable them on CI in Web mode
Labels: a: tests,framework,platform-web,P2,team-web,triaged-web

We currently skip all `packages/flutter/test/examples` tests on CI because they fail. We should fix them.
Repository: flutter
Issue: Textspan does not support MultiTapGestureRecognizer
Labels: a: text input,c: crash,framework,a: accessibility,has reproducible steps,P2,found in release: 3.3,found in release: 3.5,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->
```dart
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {

    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(

          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            RichText(
              text: TextSpan(
                text: 'You have pushed the button this many times:',
                recognizer: MultiTapGestureRecognizer(),
              ),
            ),
          ],
        ),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}
```
It will crash if the accessibility feature is turned on

## Logs

<!--
      Include the full logs of the commands you are running between the lines
      with the backticks below. If you are running any "flutter" commands,
      please include the output of running them with "--verbose"; for example,
      the output of running "flutter --verbose create foo".
-->

```
```

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
```
Repository: flutter
Issue: [web]: HTML Reading Mode for Static Content
Labels: c: new feature,engine,platform-web,c: proposal,e: web_html,P3,team-web,triaged-web

## Use case

When building a simple site and you want to let the use use reading mode in Safari or Google Chrome it would be nice to semanticly render the H1 and text tags for the flutter widgets. Example Flutter website blog: https://rodydavis.com/#/blog

## Proposal

Render a invisible H1 and Text tree that the browser can interpret enough to display a reading mode overlay.

Safari Docs: https://developer.apple.com/library/archive/documentation/Tools/Conceptual/SafariExtensionGuide/WorkingWiththeReader/WorkingWiththeReader.html

Chrome Extensions: https://chrome.google.com/webstore/detail/read-mode/nagcaahojecfeopbghgihcabgiepploa?hl=en

This will be come more useful when people are using Flutter web for mobile websites too. 

Flutter does a wonderful job and text rendering. This is just a way for the user to see it in a bigger size or different font.
Repository: pytorch
Issue: Tensorboard add image with boxes, labels, and confidence scores.
Labels: triaged,module: tensorboard

## 🚀 Feature
<!-- A clear and concise description of the feature proposal -->
Add a method to `torch.utils.tensorboard.writer.py` that will take an image, list of bounding boxes, list of class ids, and list of confidence scores and adds a summary to the events file.
## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
In the TensorFlow Object Detection API, there is the functionality to add this, and it has been useful for visually profiling the performance of object detection models.

## Pitch

<!-- A clear and concise description of what you want to happen. -->
I would like to add this method into the `writer.py` file.

## Additional context

<!-- Add any other context or screenshots about the feature request here. -->
Here is an example of this in tensorboard.
![image](https://user-images.githubusercontent.com/30412615/66153079-d7f76980-e5e8-11e9-9792-d3ea478de86a.png)
Repository: scrcpy
Issue: [FEATURE REQUEST] Native support for Wifi Direct or mesh networking.
Labels: feature request

Wifi Direct implementation:
https://stackoverflow.com/questions/31877144/how-to-set-up-a-wifi-direct-connection-between-android-and-linux
https://github.com/NaniteFactory/Wifi-Direct-on-Linux
https://android.googlesource.com/platform/development/+/master/samples/WiFiDirectDemo

Mesh networking:
https://github.com/RightMesh/HelloMesh
https://libremesh.org/
https://www.open-mesh.org/projects/open-mesh/wiki
Repository: pytorch
Issue: torch.Tensor.mean erroneously documented as sometimes returning a tuple
Labels: module: docs,triaged,module: reductions

[torch.Tensor.mean](https://pytorch.org/docs/master/tensors.html#torch.Tensor.mean) is documented to sometimes return a tuple, but [torch.mean](https://pytorch.org/docs/master/torch.html#torch.mean) is not.