sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: torch.nn.ConvTranspose2d's example in docstring is invalid
Labels: module: docs,module: nn,triaged,actionable

### 🐛 Describe the bug

I think result dimension in example code in torch.nn.ConvTranspose2d is invalid.

[torch.nn.ConvTranspose2d's docstring](https://github.com/pytorch/pytorch/blob/6a664481d5c8f5d9f6ef6357c0d2192f090b4553/torch/nn/modules/conv.py#L845) is written like belows,
```
        .. math::
              H_{out} = (H_{in} - 1) \times \text{stride}[0] - 2 \times \text{padding}[0] + \text{dilation}[0]
                        \times (\text{kernel\_size}[0] - 1) + \text{output\_padding}[0] + 1
        .. math::
              W_{out} = (W_{in} - 1) \times \text{stride}[1] - 2 \times \text{padding}[1] + \text{dilation}[1]
                        \times (\text{kernel\_size}[1] - 1) + \text{output\_padding}[1] + 1

    Examples::
        >>> # With square kernels and equal stride
        >>> m = nn.ConvTranspose2d(16, 33, 3, stride=2)
        >>> # non-square kernels and unequal stride and with padding
        >>> m = nn.ConvTranspose2d(16, 33, (3, 5), stride=(2, 1), padding=(4, 2))
        >>> input = torch.randn(20, 16, 50, 100)
        >>> output = m(input)
        >>> # exact output size can be also specified as an argument
        >>> input = torch.randn(1, 16, 12, 12)
        >>> downsample = nn.Conv2d(16, 16, 3, stride=2, padding=1)
        >>> upsample = nn.ConvTranspose2d(16, 16, 3, stride=2, padding=1)
        >>> h = downsample(input)
        >>> h.size()
        torch.Size([1, 16, 6, 6])
        >>> output = upsample(h, output_size=input.size())
        >>> output.size()
        torch.Size([1, 16, 12, 12])
```

By the equation in the docstring, the dimension of output after upsample in the above examples should be [1, 16, 11, 11].
Also, torch 1.8.1 shows [1, 16, 11, 11], too.



### Versions

Above code shows error.
But I think this issues doesn't need to reproduce the error.

cc @svekars @holly1238 @albanD @mruberry @jbschlosser @walterddr @kshitij12345 @brianjo
Repository: godot
Issue: Error Generating Collision Shapes From Line at Runtime 
Labels: bug,topic:core,needs testing,topic:2d

### Godot version

3.4.2.stable

### System information

Windows 11, GLES2, GLES3, Chrome Browser

### Issue description

Collision shapes are not always generating properly when game exported to html 5 and although not as often, occasionally during regular debugging within Godot. Problem occurs with both GLES2 and GLES3. Console Error Shows:
`ERROR: Convex decomposing failed!`  
`  at: decompose_polygon_in_convex (core/math/geometry.cpp:675) - Convex decomposing failed!`
may be related to issue https://github.com/godotengine/godot/issues/57789
### Steps to reproduce

Run Project in Browser and Draw a curved line similar to the one drawn in the video below.


https://user-images.githubusercontent.com/25701774/159607250-335c0032-e270-4345-bb16-844d9d5faa7a.mp4



### Minimal reproduction project

[LineToCollisionShapeProblem.zip](https://github.com/godotengine/godot/files/8329023/LineToCollisionShapeProblem.zip)
Repository: yt-dlp
Issue: Add option similar to --ffmpeg-location to all dependencies 
Labels: enhancement

### Checklist

- [X] I'm reporting a feature request
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.03.08.1**. ([update instructions](https://github.com/yt-dlp/yt-dlp#update))
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues including closed ones. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Description

If I wanted to add mutagen to YT-DLP I would have to add the executable to my ```PATH``` or have it in the same directory as YT-DLP. There is an --ffmpeg-location option to specify the location of executable for FFMPEG, but not for other dependencies. I believe it would be a genuinely useful option to add a similar option for other dependencies. For example, if I wanted to add my mutagen executable I would just have to type ```yt-dlp --mutagen-location PATH```. 

<!--

Also one of the contributors told me to make an issue so that person would not forget about it.
<br/>[link](https://discord.com/channels/807245652072857610/807247901981016094/956003856922329108)
![image](https://user-images.githubusercontent.com/69652659/159610215-123dbdcd-a93b-48be-a8ea-3466dbab3d4f.png)
-->
Repository: flutter
Issue: "Migrating from flutter_driver" docs not explain how to do the integration test migration for the "app-to-app" case
Labels: framework,d: examples,a: existing-apps,f: integration_test,P2,team-framework,triaged-framework

This is the follow-up for the issue mentioned in https://github.com/flutter/flutter/issues/98702 since the issue has been closed without any working solution provided.

**Issue**: None of the following documents explains how to do the integration test migration for the "app-to-app" case, where we are supposed to use the "--use-existing-app" flag to run our integrations tests.  Could someone please provide more details?

https://docs.flutter.dev/testing/integration-tests/migration
https://docs.flutter.dev/testing/integration-tests
https://github.com/flutter/flutter/tree/master/packages/integration_test#integration_test
Repository: godot
Issue: Crashing when reducing nested viewport size component to 2
Labels: bug,topic:rendering,confirmed,crash

### Godot version

v3.4.3.stable.arch_linux

### System information

Arch Linux, GLES3, Nvidia GeForce GTX 1660 Super

### Issue description

**Expected:** 
Setting nested viewport size to 2 doesnt crash the engine.

**Actual:**
Setting nested viewport size to 2 crashes the engine with the following error:
```
❯ OpenGL ES 3.0 Renderer: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2
OpenGL ES Batching: ON
 
ERROR: FATAL: Index p_index = 1 is out of bounds (size() = 1).
   at: get (./core/cowdata.h:156)

================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v3.4.3.stable.arch_linux
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /usr/lib/libc.so.6(+0x42560) [0x7f466d582560] (??:0)
[2] /usr/bin/godot(+0x106c6cb) [0x55a1c358c6cb] (??:0)
[3] /usr/bin/godot(+0x106dead) [0x55a1c358dead] (??:0)
[4] /usr/bin/godot(+0x10a9f1f) [0x55a1c35c9f1f] (??:0)
[5] /usr/bin/godot(+0x2696c96) [0x55a1c4bb6c96] (??:0)
[6] /usr/bin/godot(+0x2ccb7fb) [0x55a1c51eb7fb] (??:0)
[7] /usr/bin/godot(+0x26868b6) [0x55a1c4ba68b6] (??:0)
[8] /usr/bin/godot(+0x26a5676) [0x55a1c4bc5676] (??:0)
[9] /usr/bin/godot(+0x8bbff2) [0x55a1c2ddbff2] (??:0)
[10] /usr/bin/godot(+0x836a9d) [0x55a1c2d56a9d] (??:0)
[11] /usr/lib/libc.so.6(+0x2d310) [0x7f466d56d310] (??:0)
[12] /usr/lib/libc.so.6(__libc_start_main+0x81) [0x7f466d56d3c1] (??:0)
[13] /usr/bin/godot(+0x84aa15) [0x55a1c2d6aa15] (??:0)
-- END OF BACKTRACE --

```

### Steps to reproduce

1. Open project
2. Open `player` scene
3. Select nested viewport `Viewport`
4. Change its size component to 2

### Minimal reproduction project

[ViewportCameraBugMinimal.zip](https://github.com/godotengine/godot/files/8330058/ViewportCameraBugMinimal.zip)
Repository: pytorch
Issue: My_rank in the implementation of torch.distributed.scatter_object_list should be global
Labels: oncall: distributed,module: c10d

### 🐛 Describe the bug

`scatter_object_list` should use the global rank of each device to check if it is the source rank as
```python
    my_rank = get_rank()
```
instead the current [`my_rank`](https://github.com/pytorch/pytorch/blob/02ba0fa8e8bf4364b211b61670e221255e23e1f5/torch/distributed/distributed_c10d.py#L1962), which fails when the function is applied to a subgroup where the source has different local and global rank (local rank is the rank in the subgroup).
For example, if I set `src` to its global rank, the following error will be raised by [this line](https://github.com/pytorch/pytorch/blob/02ba0fa8e8bf4364b211b61670e221255e23e1f5/torch/distributed/distributed_c10d.py#L1981).
```bash
ValueError: Argument ``scatter_list`` must be specified on source rank.
```
Or, if I set `src` to its local rank (e.g. 0, and in the meantime, the global rank 0 is not in the subgroup), the other error will be raised by [this line](https://github.com/pytorch/pytorch/blob/02ba0fa8e8bf4364b211b61670e221255e23e1f5/torch/distributed/distributed_c10d.py#L1977)
```bash
RuntimeError: The global rank 0 is not part of the group <torch._C._distributed_c10d.ProcessGroupGloo object at 0x7f705c494230>
```

### Versions

PyTorch version: 1.10.0+cu113
CUDA used to build PyTorch: 11.3

OS: Ubuntu 20.04.3 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: vscode
Issue: Tabs API: better integration test coverage
Labels: api,debt,workbench-tabs

Testing #145585

I forgot to report this yesterday: I felt that a lot of the issues uncovered could have been found with just providing a very good integration test suite (see https://github.com/microsoft/vscode/issues/145773#issuecomment-1075967255 for example).

The tabs API is super nice to test actually.

A few things to ensure to cover:
* all events from `tabGroups`
* all properties of `TabGroup` and `Tab` before and after mutation
* mutations
  * opening editors
  * closing editors
  * moving editors
  * opening groups
  * closing groups
  * moving groups
  * making an editor active that was not active
  * making a group active that was not active
  * changing tab labels (e.g. in an untitled file changing first line)
  * pinning / unpinning
  * preview / sticky
  * dirty / saved
  * all the kinds (text, text diff, notebook, notebook diff, custom, unknown)
* special cases: `workbench.editor.closeEmptyGroups: false` and empty groups

We need to make sure that proper commands or API is used when altering state to prevent flaky tests as outlined in https://github.com/microsoft/vscode/issues/145773#issuecomment-1077782847
Repository: PowerToys
Issue: PowerToys.Run does not run apps as an admin when in admin mode
Labels: Idea-Enhancement,Product-PowerToys Run,Needs-Triage,Run-Results (Programs)

### Microsoft PowerToys version

0.56.2

### Running as admin

- [X] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Start PowerToys as an administrator. In settings, ensure administrator mode is used (use option to restart as administrator if needed). Alt+Space to start PowerToys.Run. Run cmd. cmd starts as a user without admin rights. In my view, I should be able to start cmd as admin by default when running PowerToys in admin mode (I realise that this can be done by using Ctrl+Shift+Enter to start cmd, but this involves going through UAC prompt, and when running in admin mode I purposefully do not want this extra overhead, otherwise I'd just run PowerToys without administrator mode.

### ✔️ Expected Behavior

When using administrator mode, PowerToys.Run starts apps as an administrator. If this is not expected, I would like a different option to be added to enable this.

### ❌ Actual Behavior

App starts as standard user.

### Other Software

cmd (from Microsoft Windows [Version 10.0.19044.1586])
Repository: pytorch
Issue: Training, Forward / backward pass with _different_ batch-size, no speedup observed when backward pass has smaller batch-size
Labels: feature,module: autograd,triaged

### 🚀 The feature, motivation and pitch

Currently, it seems that in training the Pytorch autograd engine is 'optimized' only for the case where the forward and backward pass are done with tensors with identical batch-size (= last dimension of tensor). If the backward propagation operates on a tensor corresponding to a _smaller_ batch size (e.g. because some samples have been discarded from the batch after the forward pass according to some criterion - e.g. loss value), no speedup is observed, although it _should_ be faster theoretically (because of the smaller batch-size in the backward pass).
This is also mentioned in the NVIDIA GTC 2022 talk 'Faster Neural Network Training, Algorithmically' [1], minute 20:00-21:00
So, although technically it is possible to have a smaller batch size for backward step than in the forward size, currently in Pytorch unfortunately it does not bring a speedup.

 It would be great if pytorch autograd engine could be extended, so that using a smaller batch size in the backward pass leads to a speedup in training. There are several curriculum-learning-like methods which could be utilized then successfully in order to speedup the training, like mini-batch trimming [2] and selective backprop [3]. The basic principle of these methods is to focus more on the 'hard' examples in the batch (the ones with a higher loss - per-sample loss is calculated in forward pass) and discard the 'easier' examples prior to running the backward pass.

Important: A speedup would be observable only for models _without_ batch-norm layers (e.g. transformer models), see [4] for a discussion.

--------

[1] NVIDIA GTC 2022, S41421, Faster Neural Network Training, Algorithmically
https://reg.rainfocus.com/flow/nvidia/gtcspring2022/aplive/page/ap?search=S41421

[2] "Some like it tough: Improving model generalization via progressively increasing the training difficulty", Fassold et al, ISPR, 2022
https://arxiv.org/abs/2110.13058
https://github.com/hfassold/mbtrim

[3] "Accelerating deep learning by focusing on the biggest loser", Jiang et al, 2019
https://arxiv.org/pdf/1910.00762.pdf

[4] https://stackoverflow.com/questions/68920059/pytorch-no-speedup-when-doing-backward-pass-only-for-a-part-of-the-samples-in-m


### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano @Varal7
Repository: PowerToys
Issue: PowerToys.Run does not launch apps through the user account that has started PowerToys
Labels: Idea-Enhancement,Product-PowerToys Run,Area-Runner,Needs-Triage

### Microsoft PowerToys version

0.56.2

### Running as admin

- [X] Yes

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

Ensure PowerToys is not running. Find PowerToys.exe, shift+rightclick, run as different user. After PowerToys started, Alt+Space to launch PowerToys.Run, start cmd. In cmd, enter whoami. The user shown is not the "different user" that was used to start PowerToys.

### ✔️ Expected Behavior

PowerToys.Run should use the same user that was used to start PowerToys. To show expected behaviour, run cmd (without using PowerToys.Run) as a different user, and in cmd run whoami, the name of the different user should then be shown.

### ❌ Actual Behavior

PowerToys.Run ignores the user that was used to start PowerToys.

### Other Software

cmd (from Microsoft Windows [Version 10.0.19044.1586])
Repository: next.js
Issue: Next 12: Windows drive letter capitalization still an issue
Labels: bug

### Verify canary release

- [X] I verified that the issue exists in Next.js canary release

### Provide environment information

    Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 10 Enterprise
    Binaries:
      Node: 14.17.1
      npm: 6.14.13
      Yarn: N/A
      pnpm: N/A
    Relevant packages:
      next: 12.1.1-canary.17
      react: 17.0.2
      react-dom: 17.0.2

### What browser are you using? (if relevant)

Irrelevant, the issue stems from the OS/NodeJS server

### How are you deploying your application? (if relevant)

Irrelevant, the issue only occurs in development mode

### Describe the Bug

On windows, drive letter capitalization causes Next to throw errors like this when running `next dev`:

> warn  - Invalid casing detected for project dir, received [c:\projects\website]() actual path [C:\projects\website](), see more info here [https://nextjs.org/docs/messages/invalid-project-dir-casing]()

This occurs both in existing projects upgraded from Next 11 to Next 12, as well as new Next 12 projects. The error only occurs on Windows - if I run a WSL (Windows subsystem for Linux) the error disappears because Linux is not case sensitive.

This was a minor problem turning major now, as it prohibits developers on windows machines to upgrade Next to latest.

See this discussion for further proof:
https://github.com/vercel/next.js/discussions/33299

### Expected Behavior

Next 12 is expected to run without errors on Windows, just like Next 11, without regards for drive letter capitalization.

This is uncircumventable on Windows, because it is not possible to change the drive letter capitalization, so the issue must be fixed in the dependency that throws this warning.

### To Reproduce

- Install Next 12 on a Windows machine. It seems to happen on multiple node/NPM versions.
- Run Next in development mode, `npm run dev`
- Observe the terminal output.
Repository: rust
Issue: rustdoc: missing inherent impls on reexport
Labels: T-rustdoc,E-needs-test,C-bug

https://doc.rust-lang.org/nightly/nightly-rustc/rustc_infer/traits/struct.ObligationCause.html

does not show any inherent methods for me. They are shown in https://doc.rust-lang.org/nightly/nightly-rustc/rustc_middle/traits/struct.ObligationCause.html however
Repository: material-ui
Issue: [examples] Bizarre render bug when a Button is used inside a Card on SSR (remix-run)
Labels: examples

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

Codesandbox: https://codesandbox.io/s/happy-monad-5qif8r?file=/app/src/createEmotionCache.ts

Following the remix run example, when using a `Button` or `IconButton` inside a `Card > CardActionArea` - it seems that the server side render puts additional cards outside the layout.

I cannot really describe what I'm seeing, its better to just look at the code sandbox.

Weirdest bug i've seen this year so far. 

I'm also not sure where to file the bug report, here or over on @remix-run. But at the moment I feel like its probably something that the CardActionArea is doing that is not fully supported by remix? Either that, or the remix integration example is missing something.

**Note:** I also tried initialising the emotion cache with `prepend: true` but this causes my app to render nothing at all.

### Expected behavior 🤔

It should not duplicate the render of certain cards

### Steps to reproduce 🕹

_No response_

### Context 🔦

_No response_

### Your environment 🌎

_No response_
Repository: material-ui
Issue: [AvatarGroup] Add the possibility to show a tooltip when using a group
Labels: new feature,component: avatar

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

[AvatarGroup] When hovering on the +2 avatar icon (the last avatar component) , It should show a tooltip or another customizable component to show  the extra avatars.

### Examples 🌈

![Screenshot from 2022-03-23 15-27-10](https://user-images.githubusercontent.com/44155065/159699244-026365c7-424b-4ad0-8497-31c200556105.png)


### Motivation 🔦

We need more possiblity and flexibility with the Avatar Group component 
![Screenshot from 2022-03-23 15-27-10](https://user-images.githubusercontent.com/44155065/159699738-404d2ccd-6406-41fd-97eb-6da059d4d1e6.png)
Repository: PowerToys
Issue: FancyZones --> Cycling through zones includes the expended zone you get when dragging a window in the gap between zones
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Hi,

I would like an option that when you cycle through zones (with shortcut keys) this will include the expended zone you get when dragging a window in the gap between zones.

Hope you understand and can implement this option.

This would make FancyZones even better for me.

### Scenario when this would be used?

I use the normal and expended zones often, so access through keyboard instead of the precise mouse aiming for the gap would be nice to have.

### Supporting information

_No response_
Repository: vscode
Issue: [html] don't show closing element proposal as first entry if element is already closed later
Labels: feature-request,html

Have the following html content

```
<header>
	<
</header>
```
Let the cursor be on the second line, as soon as you type `<` suggest widget shows and `/header` is the first suggestion.
I would not expect `/header` to be offered here since that tag is already closed.

fyi @keford
Repository: flutter
Issue: [Android]Camera plugin has low ISO, when starting imageStream with front camera
Labels: e: device-specific,platform-android,p: camera,package,P3,team-android,triaged-android

<!-- 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 out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case
I am using `Camera` plugin with `google_ml_kit` to detect faces in the live stream of images & show the preview.
but unfortunately when I call the function `startImageStream(() {})` the iso becomes very low.

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## Proposal
on starting the image stream the iso should not be reduced (I tried using resolution preset medium & high).

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: vscode
Issue: Resize editor pane left/right/up/down keybindings
Labels: help wanted,feature-request,workbench-editor-grid

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

Similar to #46100 but specifically requesting resize left/right/up/down key bindings. 

It would also be useful if we could set increment sizes as the default is quite small.

Context: now that vscode's in-editor-pane terminal is reliable I use it a lot more, almost treating vscode as a multiplexer. So being able to resize panes with more fine-grained control from the keyboard would be very useful.