sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: CPU eval BatchNorm2d is not threaded
Labels: module: performance,module: nn,triaged,module: norms and normalization

```
import torch
import torch.fx
import torchvision.models as models

rn18 = models.resnet18()
# comment this out to do train mode
rn18.eval()

inp = torch.randn(5, 3, 224, 224)
bn_input = rn18.conv1(inp)

NITER = 1000
import time
s = time.time()
for _ in range(NITER):
    out = rn18.bn1(bn_input)
e = time.time()

time_per_iter = (e - s) / NITER
bytes_rw = bn_input.numel() * bn_input.element_size() + out.numel() * bn_input.element_size()
print('GB/s', bytes_rw / time_per_iter / 1e9)
"""
OMP_NUM_THREADS=default
eval: GB/s 5.64837339732215
train: GB/s 24.822818017881474

OMP_NUM_THREADS=1
eval: GB/s 5.809292354256564
train: GB/s 1.9974463507138427
"""
```

With intra-op parallelism, BatchNorm2d in train mode hits memory bandwidth bound. Eval does not, sitting at around 5.64 GB/s. With single threading, train's performance is worse, as expected. Eval's is the same, because it doesn't have threading. Please add threading to the eval version of BatchNorm2d

cc @albanD @mruberry @jbschlosser @VitalyFedyunin @ngimel
Repository: flutter
Issue: provide a way to prepare any kind of image to be drawn
Labels: framework,a: images,c: proposal,P3,team-framework,triaged-framework

currently image, even if it's drawn from byte data, will have a quite noticable time to be processed before
i propose that there were a way to prepare any kind of image (memory, asset, network, file, or from ImageProvider) to be drawn

reproducible sample https://github.com/nt4f04unds-archive/issues/tree/flutter_75750

## use case

there might be cases when someone would like to do such thing

as possible example (i know it's weird way to handle things as it's not effective, but still) - we call `takePicture()` in camera plugin and we don't want a black frame to appear whilst the image is processing after Image.memory is constructed, instead we would like to somehow prepare the image to be painted and only then show it
Repository: youtube-dl
Issue: Can we add a new feature to download videos from https://gtv.org  There are a lot of good videos on https://gtv.org  thanks!
Labels: site-support-request

## Checklist

- [x] I'm reporting a new site support request
- [X] I've verified that I'm running youtube-dl version **2021.02.04.1**
- [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://gtv.org/video/id=5fb1c878c280ff1609c76855
- Single video: https://gtv.org/video/id=601ec64d3f8a013ab47f86f1
- Playlist           https://gtv.org/user/5e596957357cc612d35a8044


## Description

https://gtv.org is a new social media video hosting service provider. There are tons of valuable videos.
Can we add a new feature to download videos from https://gtv.org There are a lot of good videos on https://gtv.org thanks!
Repository: godot
Issue: Vulkan: Debug contact points are not rendered (MultiMesh issue)
Labels: bug,topic:rendering,regression,topic:3d

**Godot version:**
Master df9c98e107b19fc50bc5ae9f7ed624d693c0fb32
Needs PR #45861

**OS/device including version:**
Windows 10

**Issue description:**
**Note:** The fix from PR #45861 is required to investigate the issue, otherwise contact points are not rendered at the right position anyway.
When enabling contact points debugging on the master branch, nothing is showing, it works fine on the 3.2 branch. This looks like an issue with Multimesh rendering.

**Steps to reproduce:**
1. Enable "Visible Collision Shapes" in any project with some rigid bodies.
2. Start game.
3. Observe no contact point information when shapes collide.

**Minimal reproduction project:**
[cylinder-tests-4.0.zip](https://github.com/godotengine/godot/files/5955397/cylinder-tests-4.0.zip)
Repository: godot
Issue: Saving PackedScenes with bundled resources corrupts tscn files
Labels: bug,topic:core

**Godot version:**
3.2.3

**OS/device including version:**
Windows 10 64-bits

**Issue description:**
I'm using gdnative to save several PackedScenes with bundled resources like this:
`ResourceSaver::get_singleton()->save(path, scene, ResourceSaver::FLAG_BUNDLE_RESOURCES)`
The scenes have common sub-resources.
Result: every saved .tscn but the first contains redundant indices for sub-resources, which makes them incomplete after loading.

This happens in the engine:
- ResourceFormatSaverTextInstance::save()
- on the first run the sub-resources are assigned a new index
- saving works correctly
- consecutive runs are re-using the same indices for common sub-resources, but do NOT consider these when assigning new indices to other resources
- files corrupted by redundant indices

The issue can be fixed by removing the condition `if (res->get_subindex() == 0)` in resource_format_text.cpp, line 1613, but that may have unintended side effects.
Probably the same issue in ResourceFormatSaverBinary because code is almost identical.
Repository: rust
Issue: Missing documentation/feature - changing global_allocator in cargo test
Labels: C-enhancement,A-allocators,A-docs,A-libtest,T-libs

Hi,

From https://github.com/rust-lang/rust/blob/master/library/core/src/alloc/global.rs#L5 this mentions how to use a different global allocator in the main of a binary. It would be beneficial to be able to use the same allocator in tests of that binary, or associated libraries and modules. 

Can this documentation be extended to demonstrate how cargo test can use an alternate allocator? Alternately if this isn't possible today, can this be a feature request to allow the allocator to be changed with cargo test? 

Thanks,
Repository: storybook
Issue: Failure should be graceful on cyclic references in data
Labels: bug,core,args

**Describe the bug**
When I navigate to a canvas, my page turns blank.

This is what I see in the browser console (I don't think the stack trace is useful, but error message might be):

![image](https://user-images.githubusercontent.com/4688870/107463938-33464e00-6b85-11eb-9ea1-eff5b4aae0a5.png)

**To Reproduce**
Steps to reproduce the behavior:

1. Pick a component and a framework of your choice
2. If you usually give the args `x` to the component, just set `x.randomProperty = x`. Choose `randomProperty` in a way that it doesn't interfere with legitimate operation of the component.
3. Try to see it in storybook

**Expected behavior**
The component renders. Perhaps the JSON of the data fails to render saying that "couldn't convert data to json".

**Screenshots**

Screen is entirely blank.

**Code snippets**

I hope the bug reproduction instructions are sufficient

**System**
```
  Binaries:
    Node: 10.19.0 - /usr/bin/node
    npm: 6.14.4 - /usr/bin/npm
  Browsers:
    Chrome: 87.0.4280.66
    Firefox: 83.0
  npmPackages:
    @storybook/addon-actions: ^6.1.17 => 6.1.17
    @storybook/addon-essentials: ^6.1.17 => 6.1.17
    @storybook/addon-links: ^6.1.17 => 6.1.17
    @storybook/angular: ^6.1.17 => 6.1.17
```

Note: I actually was using firefox 86.0b7 when this was encountered.

**Additional context**
Please ask if required
Repository: go
Issue: net: LookupNS doesn't chase through CNAMEs
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?
go1.13 darwin/amd64
</pre>
### Does this issue reproduce with the latest release?
yes

### What operating system and processor architecture are you using (`go env`)?

macos and alpine container

### What did you do?
```
package main

import (
	"fmt"
	"net"
)

func main() {
	records, err := net.LookupNS("_acme-challenge.xxxxxxx.cat")

	if err != nil {
		fmt.Println(err.Error())
	}else {
		fmt.Println(records[0])
	}
}
```

I see related issues with cgo/go/cgo+1 resolvers but:

```
export GODEBUG=netdns=cgo                              
go run main.go                                         
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
export GODEBUG=netdns=go 
run main.go          
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
 export GODEBUG=netdns=cgo+1
go run main.go             
go package net: using cgo DNS resolver
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host
dig +short ns _acme-challenge.xxxxx.cat
ghs.googlehosted.com
```

### What did you expect to see?
ghs.googlehosted.com.
### What did you see instead?
lookup _acme-challenge.xxxxx.cat on 192.168.50.1:53: no such host

it works fine in most cases, but not in some cases(domains) and I don't understand why.

I have the complete code running in an alpine container within a kubernetes cluster, so I rule out that it is a problem with my local dns solver.


Note: Adding net.LookupCNAME when LookupNS return error I can see the expected result. lookupNS not following CNAME? is the expected behavior?
Repository: scrcpy
Issue: Screen On shortcut not working
Labels: screenoff

 - [x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
 - [x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
 - OS: Windows
 - scrcpy version: 1.12.1
 - installation method: Windows release
 - Android version: 11

**Describe the bug**
In older android versions , windows shortcut keys (Alt + shift + o) and (alt + shift + p) was worked properly. In android 11, these shortcut keys not worked correctly. Kindly take necessary actions.
Repository: go
Issue: testing: clarify when TestMain is appropriate and not
Labels: Documentation,NeedsInvestigation

We had an open discussion in a longer design review thread about when user-authored custom [`TestMain`](https://golang.org/pkg/testing/) (debuted in [release 1.4](https://golang.org/doc/go1.4#minor_library_changes)) entrypoints are necessary or not compared to `func init`.  We were able to offer at best fuzzy criteria for this.  It would be beneficial for the newcomer's perspective if some basic litmus tests, advice, or criteria were provided.  I have no opinion on where but rather that they are central and findable.

I don't want to bike shed the reasoning, but I will enumerate some of the tradeoffs I heard:

1. More individuals are familiar with `func init` semantics, so that speaks in favor of `func init` for setup.  One counterpoint is that a setup routine that requires all package initializers to have been run by the time it is executed could become flaky or error-prone.
2. Not all tests strictly need what is commonly setup, making the test setup process more expensive than it needs to be (e.g., when a test execution filter `-test.run=pattern` is used).  This also speaks against `func init` above.
3. From a code health standpoint, central setup in `func init` or `func TestMain`, could imply mutated global state.  Unless the tests use whatever is setup in a hermetic way individually, it could accidentally encode test ordering assumptions between test functions.  Might be better to encourage tests to locally set up what they need versus not and to enforce cleanup, especially now that we have `(*testing.T).Cleanup`.

One final ancillary point I heard in an earlier discussion related to user-authored `TestMain` that a documentation treatment should also cover: 

1. what is the preferred way to handle errors in `TestMain`?  `panic`, `os.Exit(1)`, `log.Fatal`?
2. where should text output be written: `stdout` or `stderr`?

Before stating that the answers to the above is obvious, it may be obvious to a seasoned practitioner but not a newcomer.
Repository: go
Issue: cmd/compile: recommend fix when "method has pointer receiver"
Labels: NeedsDecision,compiler/runtime

Go's diagnostic message when passing a non-pointer to a function taking an interface is confusing because it doesn't explain very well what the problem is.

Example (https://play.golang.org/p/MXm6RG5fYPy):

```golang
package main

import (
	"fmt"
)

type Widget interface {
	DoStuff()
}

type MyWidget struct{}

func (w *MyWidget) DoStuff() {
	fmt.Println("Doing stuff")
}

func doStuffWithWidget(w Widget) {
	w.DoStuff()
}

func main() {
	w := MyWidget{}
	doStuffWithWidget(w)
}
```

This produces the diagnostic:

```
./prog.go:23:19: cannot use w (type MyWidget) as type Widget in argument to doStuffWithWidget:
	MyWidget does not implement Widget (DoStuff method has pointer receiver)
```
... which is only half the story, and makes it difficult to see what's actually wrong. A better diagnostic would be:

```
./prog.go:23:19: cannot use w (type MyWidget) as type Widget in argument to doStuffWithWidget:
	MyWidget does not implement Widget (DoStuff method has pointer receiver). Passing &w would work here.
```
Repository: TypeScript
Issue: Project reference build error when one of projects' exported var contains external module's vars.
Labels: Bug,Rescheduled

# Bug Report

<!--
  Please fill in each section completely. Thank you!
-->

### 🔎 Search Terms

Project Reference.

<!--
  What search terms did you use when trying to find an existing bug report?
  List them here so people in the future can find this one more easily.
-->

### 🕗 Version & Regression Information

<!-- When did you start seeing this bug occur?

"Bugs" that have existed in TS for a long time are very likely to be FAQs; refer to
  https://github.com/Microsoft/TypeScript/wiki/FAQ#common-bugs-that-arent-bugs

If possible, please try testing the nightly version of TS to see if it's already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly

Note: The TypeScript Playground can be used to try older versions of TypeScript.

Please keep and fill in the line that best applies:
-->
- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _ProjectReference_
- I was unable to test this on prior versions because _______

### ⏯ Playground Link

<!--
  A link to a TypeScript Playground "Share" link which shows this behavior

  The TypeScript Workbench can be used for more complex setups, try
  https://www.typescriptlang.org/dev/bug-workbench/

  As a last resort, you can link to a repo, but these will be slower for us to investigate.
-->
https://github.com/07akioni/project-reference-build-error

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
// proj1/index.ts
import { enUS } from 'date-fns/locale'

const myLocale = {
  name: 'enUS',
  locale: enUS
}

export {
  myLocale
}
```

```ts
// proj2/index.ts
import { myLocale } from 'proj1'

console.log(myLocale)
```

### 🙁 Actual behavior

```
error TS2304: Cannot find name 'Locale'
```

<!-- What happened, and why it was wrong -->

### 🙂 Expected behavior

It works.

<!-- What you expected to happen instead, and why -->
Repository: TypeScript
Issue: TS18030: An optional chain cannot contain private identifiers
Labels: Bug,Fix Available,Rescheduled

# Bug Report

### 🔎 Search Terms

TS18030

### 🕗 Version & Regression Information

v4.1.3

- This is a crash
- This changed between versions ______ and _______
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about _________
- I was unable to test this on prior versions because _______

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.1.3#code/MYGwhgzhAECC0G8CwAoAkAYgA7QLzQEYBuVNAW2gAowB+aALlgEpFS0AnAUwBcBXdgHbRaAOmwl0AX1SSgA)

### 💻 Code

```ts
class A {
	#p = 1;
	m (a? :A) {
		return a?.#p;
	}
}
```

### 🙁 Actual behavior

TS18030

### 🙂 Expected behavior

no error
Repository: pytorch
Issue: Automatic splitting of batch during model feed-forwarding to avoid memory errors caused by the too big batch_size
Labels: feature,module: memory usage,triaged,needs research

## 🚀 Feature
Ensure that models can according to the memory available on the GPU during a feed-forward, automatically split the sent batch into several small mini_batches to avoid the memory errors. 

## Motivation
So that during the training, users no longer have to reduce batch_size (or image size in case of image). The training will just take time but any users could train models any batch_size without check manually the good size for mini_batch.
During inference also, user could just pass a big batch_size and the framework will automatically define the best number of sample to pass at the time through the GPU to don't have memory errors anymore.

## Pitch

what I want is that whatever the size of the batch that we set, the GPU can split it into several small batches to process so as to avoid memory errors due to the size of the batch being too large.
Repository: vscode
Issue: Search all files (ctrl+shift+f) doesn't find results in files with very long filepaths unless opened in the editor
Labels: bug,help wanted,upstream,search,confirmed

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
- VS Code Version: 1.53.1 5d424b828ada08e1eb9f95d6cb41120234ef57c7 x64
- OS Version: Windows 10 Pro - Build 19041

Steps to Reproduce:

1. Make a new file with a very long filepath in vs code.
2. When the file is not open in the editor, use ctrl+shift+f to search for any content in the file. No results appear.
3. Open the file and search again. Results appear.

Specific steps to reproduce on Windows 10:

1. Make a number of nested folders in windows explorer until this error appears:
![image](https://user-images.githubusercontent.com/35467946/107494880-9f2db400-6b8f-11eb-9012-f616a53d2f95.png)
2. Add more nested folders/files to this directory using VS code.
3. Make a txt file with a specific string in it and search for this string when the file is not opened in the editor.

The error seems to occur with filepaths exceeding the max filepath length of windows explorer.

Examples:
The bug in action:
![2832acd2-2bfb-43e3-a0b0-be5867ba5f6e](https://user-images.githubusercontent.com/35467946/107495760-c933a600-6b90-11eb-856c-aa8c04f89bb5.gif)

Example Path: C:\Users\<MY-USERNAME>\Desktop\long-named-foler-to-reproduce-bug-of-eternal-destruction\long-named-child-foler-to-reproduce-bug-of-eternal-destruction\long-named-child-foler-to-reproduce-bug-of-eternal-destruction\another-long-nameanother-long-nameanother-long-nameanother-long-name\deep.txt

<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes


Console output:
![image](https://user-images.githubusercontent.com/35467946/107496865-27ad5400-6b92-11eb-8ce9-537571fd00c6.png)


<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported direct to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
Repository: flutter
Issue: Flutter's build modes in flutter module
Labels: team,platform-android,tool,d: api docs,a: existing-apps,P3,team-android,triaged-android

Hi!
We add a flutter module for our android project via "Depend on the module’s source code" option. Now we need to build debug version of our app with release or profile version of flutter module. It's needed for the testing phase in our process. In other words we need to check perfomance of flutter module, but the application must be in debug mode according to our process in this phase. We also do not want to build additional release apk only for testing of the flutter module. 
So, question is how to specify build type (flutter's build mode) for flutter module independently of rootProject's build type?
Repository: PowerToys
Issue: Restore window to last known fancy zone by [shift]+ dblclck on window title
Labels: Idea-Enhancement,Product-FancyZones

## 📝 Provide a description of the new feature
When a window has been dragged from a fancy zone to an other area on the screen (not beeing a zone) I want to be able to restore the window to the fancy zone it was dragged from by a simple user action
_What is the expected behavior of the proposed feature?  What is the scenario this would be used?_

**beforehand:**

1. place window in fancy zone
2. drag window to any area on the screen not beeing a fancy zone and or maximize the window on another monitor

**action:**

3. double click on the titlebar of the window while holding the [Shift] button
4. the window restores to the fancy area it was dragged from (step 2) 
---

If you'd like to see this feature implemented, add a 👍 reaction to this post.
Repository: go
Issue: cmd/go: allow versioned 'go list' commands
Labels: NeedsDecision,GoCommand,modules,Tools

https://github.com/golang/go/issues/40276 allows using `go install path@version` to install a package at a specific version, ignoring the current module.

https://github.com/golang/go/issues/42088 is an accepted proposal to allow `go run path@version` with similar semantics - run a main package at a specific version, ignoring the current module.

While I agree that these semantics are most often useful for `go install` and `go run`, I argue that they would also be useful for other cmd/go commands. In this proposal, I want to make a case for `go list path@version`.

The main use case I want to bring forth is to list the packages included in a specific version of a module. Right now, I can only accomplish this via:

```
go mod init tmp
go get -d ${module}@${version}
go list ${module}/...
rm go.mod go.sum
```

It could instead be just `go list ${module}/...@${version}`.

For reference, I'm using this to generate static HTML pages to serve `go get` and browser requests for vanity import paths; see https://github.com/mvdan/mvdan.cc/blob/572593964513b20649c474cc9a6559405ec9cc29/gen-go-modules.bash#L49-L53.

I think this feature would also make `go list` a bit more consistent, since `go list -m path@version` currently works just fine.

/cc @dominikh @bcmills @jayconrod @myitcv @eliasnaur