sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: F.grid_sample produces weird results on single-pixel images
Labels: module: nn,triaged

## 🐛 Bug

```
import torch
import torch.nn.functional as F

B = 1
src_image = torch.ones([B, 1, 1, 1])
grid = -5 * torch.ones([B, 3, 5, 2])
img = F.grid_sample(src_image, grid, align_corners=True, padding_mode="zeros")
print(img)
```
The above returns an image full of 1's. However, some would expect it to return an image full of zeros -- each grid coordinate is (-5, -5), which is definitely beyond the [-1, 1] boundaries for the image, so the value should be the padding value.

I'm not completely convinced that this is a bug. When `align_corners=True` and the image only has a single pixel, each of the corners (-1, -1), (1, -1), (-1, 1), (1, 1) are mapped to the center of the pixel. Since they're all the same location, the geometry becomes weird -- if the distance between (-1, -1) and (1, 1) is 0, then what's the distance between (-5, -5) and (-1, -1)?

Perhaps the way to resolve this is to add a warning in the documentation and/or add a warning to the code if any inputs have height or width 1.


## Environment

PyTorch master

cc @albanD @mruberry
Repository: PowerToys
Issue: [KBM] Separate function for key press vs key hold (a la dual-key-remap)
Labels: Idea-Enhancement,Help Wanted,Product-Keyboard Shortcut Manager,Status-In progress

I love the idea of managing key remaps via PowerToys, but there's no way (that I'm aware of) to remap a key to serve two purposed depending on whether it's pressed and released vs pressed in combination.  https://github.com/ililim/dual-key-remap <- This tool is a great example. By default, it maps the CapsLock key to Escape when pressed without any other keys and Ctrl when pressed in combination with another key.
Repository: vscode
Issue: Warn when 'add item' will override an existing value?
Labels: bug,settings-editor

Issue Type: <b>Bug</b>

**Repro**
1. Using the `files.associations` setting
1. Add a key `abc` in the setting UI
1. Now click add item again and enter the key `abc` and a different value

**Bug**
This silently overwrites the previous value. Perhaps we should show a warning in this case 

VS Code version: Code - Insiders 1.48.0-insider (d13d2fc56da7a2f8bcad4256212db0661fcbba45, 2020-08-05T05:26:44.946Z)
OS version: Darwin x64 19.6.0

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>viz_display_compositor: enabled_on<br>viz_hit_test_surface_layer: disabled_off_ok<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|2, 2, 2|
|Memory (System)|32.00GB (0.15GB free)|
|Process Argv||
|Screen Reader|no|
|VM|14%|
</details>
<!-- generated by issue reporter -->
Repository: flutter
Issue: Create a custom vulkan memory allocator for Fuchsia's embedder
Labels: customer: fuchsia,engine,platform-fuchsia,P3,team-engine,triaged-engine

This is a blocker to get Flutter runner building in g3.

Currently skia relies on https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator to create a Vulkan memory allocator if we don't explicitly pass one to the background context. See: `flutter_runner::VulkanSurfaceProducer`.

Assuming we still want to use some `vk_mem_alloc` version, we would need to make a subclass of `GrVkMemoryAllocator.h` (note this is different from `GrVulkanMemoryAllocator.h`), create an object of that subclass and pass it into to Skia to use.

Basically the subclass would look very similar to what [GrVkAMDMemoryAllocator](https://fossies.org/linux/firefox/gfx/skia/skia/src/gpu/vk/GrVkAMDMemoryAllocator.cpp) is. With this approach we would have control over what version of `vk_mem_alloc` you are using and where we are getting it from as opposed to relying on skia's fork.
Repository: puppeteer
Issue: Link role in accessibility tree lacks value attribute
Labels: bug,upstream,confirmed,P3,a11y

I am a screen reader user and developer who values the accessibility tree JSON that can be obtained through the Puppeteer API.  It seems like the "link" role has a name but not value populated.  I think the value should contain the href of the link, but it seems to be empty.
Repository: godot
Issue: Godot mono not updating export variables
Labels: topic:editor,topic:dotnet

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
v3.2.3.beta1.mono.official

**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
Windows 10 Pro

**Issue description:**
<!-- What happened, and what was expected. -->
In my project, somehow the engine is not updating the exportable variables in editor, even if I manually build the project, delete the .temp folder and try to force rebuild. The export variables that worked in the past, if I remove the [Export] on top of the variable, the same don't disappear on editor, if I put [Export] in another variable, the same don't appear on editor.

I don't know if there's some corrupted file, but the project itself runs nicely, if I set manually in script those variables, I can still work, but this issue slows down my productivity.

**Steps to reproduce:**
I don't know the steps to reproduce.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
I don't have one, the project that have this issue is not public.
Repository: deno
Issue: Deno.watchFs is not working in WSL environment
Labels: bug,cli,windows,upstream

Deno.watchFs is not working in WSL(Ubuntu 18.04 LTS Bionic) environment.
Literally, there are no event messages after changing any files.
Repository: pytorch
Issue: Add non_blocking=True copy of torch.Storage
Labels: triaged,needs research

## 🐛 Bug
torch.Storage.copy_ has `non_blocking` parameter but there is no implementation of async copy.
Therefore, this copy request will be fall-backed to synced copy.

## Motivation of async use
I want to overwrite the activation during backprop for some reason.
Since PyTorch checks the tensor version if performs in-place operation, `tensor.detach().copy_` also doesn't work.

## To Reproduce
```py
a = torch.empty(10, device='cuda')
b = torch.empty(10, device='cuda')

b.storage().copy_(a.storage(), non_blocking=True) # blocks by cudaStreamSynchronize
```

## Expected behavior
No synchronization.

## Environment
- PyTorch Version: 9add11ffc143257fe1e3579702155f39eed85dc4 (HEAD)
- OS: Linux
- Build command you used
```
git clone git://github.com/pytorch/pytorch
USE_MKLDNN=0 USE_NNPACK=0 USE_QNNPACK=0 BUILD_CAFFE2_OPS=0 pip install -e .
```
- CUDA/cuDNN version: cuda-10.2, cudnn 7
- GPU models and configuration: RTX 2060 SUPER

## Patch
I've already implemented async copy under THC. If okay, I'll open PR.
https://github.com/y1r/pytorch/commit/8fded05fe91b0fb4ba527678f84b3f898b295251
Repository: pytorch
Issue: RuntimeError: each element in list of batch should be of equal size 
Labels: module: dataloader,triaged

## 🐛 Bug
```python
"python3.7/site-packages/torch/utils/data/_utils/collate.py", line 82, in default_collate
    raise RuntimeError('each element in list of batch should be of equal size')
RuntimeError: each element in list of batch should be of equal size
```
<!-- A clear and concise description of what the bug is. -->

## To Reproduce

Steps to reproduce the behavior:

```python
model = models.resnet50()

transform = transforms.Compose([
    transforms.Resize((480, 640)),
    transforms.ToTensor(),
])

train_dataset = datasets.CocoDetection(
    root=args.train_dataset, annFile=args.train_annotation, transform=transform)

train_loader = DataLoader(train_dataset, batch_size=64)

for (img, anno) in train_loader:
    out = model(img)
```

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
forward
<!-- A clear and concise description of what you expected to happen. -->

## Environment

Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).

You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```

 - PyTorch Version (e.g., 1.0): 1.6
 - OS (e.g., Linux): Ubuntu
 - How you installed PyTorch (`conda`, `pip`, source): conda -c pytorch
 - Build command you used (if compiling from source):
 - Python version: 3.7
 - CUDA/cuDNN version: 10.2
 - GPU models and configuration: V100
 - Any other relevant information:

## Additional context
It was fine first, and suddenly have the issue after I came back from dinner. 
Resolved by downgrade to PyTorch 1.5.0
<!-- Add any other context about the problem here. -->


cc @SsnL @VitalyFedyunin
Repository: pytorch
Issue: When one distributed test fails in CI, the next one can fail spuriously
Labels: oncall: distributed,module: ci,module: tests,triaged

## 🐛 Bug

Sometimes when a distributed test fails in CI, the test that runs after it can fail as well. Checking the logs in https://circleci.com/api/v1.1/project/github/pytorch/pytorch/6539093/output/107/0?file=true&allocation-id=5f2b4d69eb4d74678233b209-0-build%2F4EAB7E92, there was a legit failed test `test_ddp_uneven_inputs` but the test that ran immediately after also failed with: 

```
Aug 06 01:16:38 RuntimeError: Address already in use
Aug 06 01:17:00 Process process 1:
Aug 06 01:17:00 Traceback (most recent call last):
Aug 06 01:17:00   File "/opt/conda/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
Aug 06 01:17:00     self.run()
Aug 06 01:17:00   File "/opt/conda/lib/python3.6/multiprocessing/process.py", line 93, in run
Aug 06 01:17:00     self._target(*self._args, **self._kwargs)
Aug 06 01:17:00   File "distributed/test_distributed.py", line 2881, in _run
Aug 06 01:17:00     rank=self.rank
Aug 06 01:17:00   File "/opt/conda/lib/python3.6/site-packages/torch/distributed/distributed_c10d.py", line 422, in init_process_group
Aug 06 01:17:00     store, rank, world_size = next(rendezvous_iterator)
Aug 06 01:17:00   File "/opt/conda/lib/python3.6/site-packages/torch/distributed/rendezvous.py", line 172, in _env_rendezvous_handler
Aug 06 01:17:00     store = TCPStore(master_addr, master_port, world_size, start_daemon, timeout)
Aug 06 01:17:00 RuntimeError: Connection reset by peer
```

It looks like since the previous test failed, it did not clean up resources and tear down the store, hence the address still being in use. There can be two ways to fix this - bring down the store even when a test fails, or have each test pick a free port (I'm not sure if this is already what happens). 
## To Reproduce

Steps to reproduce the behavior:
This only seems to reproduce in CI. 

## Expected behavior

The failure of one test should not affect another test.

cc @ezyang @seemethere @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jiayisuse @agolynski @mruberry @VitalyFedyunin
Repository: rust
Issue: Typechecker doesn't honor Deref as a trait bound on references when using * operator
Labels: A-trait-system,T-lang,C-bug

I tried this code:

```rust
// Ought to work fine but doesn't
fn borrow_and_deref<T>(p: T) -> i32 where for<'a> &'a T: Deref<Target=i32> {
    *&p
}
```

I expected to see this happen: Successful typechecking

Instead, this happened: 
<img width="723" alt="image" src="https://user-images.githubusercontent.com/634666/89491662-c12c2100-d77d-11ea-990a-81123c62194b.png">

If we invoke deref manually, rather than implicitly through syntax sugar everything works fine:

```rust
// Works, so the issue is specifically at the intersection of syntax
// sugar and the trait bound
fn borrow_and_deref<T>(p: T) -> i32 where for<'a> &'a T: Deref<Target=i32> {
    *(&p).deref()
}
```

So this issue is specifically at the intersection of this kind of constraint and the syntax sugar.

[Playground link](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=785a851a1f604669e37d9c74cf4c2d7f)
Repository: flutter
Issue: Support custom buildtype in android app
Labels: c: new feature,platform-android,tool,a: build,P3,team-android,triaged-android

I want create new buidtype for android app (the same build configuration in iOS)
I also want to manual config FLUTTER_BUILD_MODE in android.

In iOS I can create new build configuration and override FLUTTER_BUILD_MODE flag in xconfig file.

How to do it in android?

Thanks,
Repository: flutter
Issue: text rendering using subpixel / cleartype
Labels: engine,platform-windows,a: quality,a: typography,c: proposal,P2,team-engine,triaged-engine

## Use case

Using Flutter on Windows desktop I noticed the text rendering differs from other (native) Windows applications (including Chrome browser). I am using ClearType on my 'low-density' LCD monitor, as surely a lot of my clients do as well, and for me this reads text a lot better.

For text on buttons etc. this doesn't matter much, but for paragraphs of text the difference with other applications gets very noticable.

## Proposal

Would it be possible marking specific textblocks/paragraphs to render it using the OS settings so it gets on par with other native applications?
Repository: flutter
Issue: [web] Autofill Safari Credit card fields issue
Labels: platform-web,good first issue,P3,team-web,triaged-web

(Tested on Safari13.1 desktop)

Card name autofill however not all the fields fill properly.

This [answer](https://stackoverflow.com/questions/25163891/when-is-the-scan-credit-card-option-available-on-ios8-safari/36151606#36151606) gives clue about what we might need to change.

https://github.com/flutter/engine/blob/master/lib/web_ui/lib/src/engine/text_editing/autofill_hint.dart Autofill hints needs to be decided per browser basis.
Repository: PowerToys
Issue: DDS support
Labels: Idea-Enhancement,Product-File Explorer

## 📝 Provide DDS Image support in Explorer.

Can we please have DDS Image support so that we can preview DDS files while working with them. I'm kinda forced to use PNG without proper support in Windows. Not that there's anything wrong with PNG for basic work, but it would just be good to have the option to easily work with DDS.
Repository: vscode
Issue: Allow blocked environment variables through if they're included explicitly in terminal launch configs
Labels: help wanted,feature-request,terminal-process

<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->

- VSCode Version: 1.47.1 (not insider as I can't get docker builds working on that for some reason)
- Local OS Version: Windows 10 2004
- Remote OS Version: WSL2 Ubuntu 20.04 
- Remote Extension/Connection Type: Docker Desktop using WSL2 backend

Steps to Reproduce:

1. Create a new project with a single file:
```json
# .devcontainer/devcontainer.json
{
  "image": "alpine:latest",
  "remoteEnv": {
    "GOOGLE_API_KEY": "api-key",
    "GOOGLE_SOMETHING_ELSE": "something-else"
  }
}
```
2. Rebuild and Reopen in Container
3. In the remote terminal, check the environment for variables:
```sh
$ printenv | grep GOOGLE
```

Expected outcome:
```
GOOGLE_API_KEY=api-key
GOOGLE_SOMETHING_ELSE=something-else
```

Actual outcome:
```
GOOGLE_SOMETHING_ELSE=something-else
```

This is the same no matter the base image used. Changing the name of `GOOGLE_API_KEY` to anything else, even by a single character, allows it through.

<!-- Check to see if the problem is general, with a specific extension, or only happens when remote -->
Does this issue occur when you try this locally?: Not relevant as this is a remote container build
Does this issue occur when you try this locally and all extensions are disabled?: Not relevant as this is a remote container build
Repository: pytorch
Issue: Why Conv3D is slower than Conv2D when its flops is smaller than Conv2D
Labels: module: performance,module: cudnn,module: convolution,triaged

I update my question for  better  understanding .
```
import torch
import torch.nn as nn
import numpy as np
import time
import torch.nn.functional as F
from torch.autograd import Variable
from thop import profile
from thop import clever_format


class convbn(nn.Module):
    def __init__(self, inplanes, planes, kenel, stride, padding):
        super(convbn, self).__init__()
        self.conv = nn.Conv2d(inplanes, planes, kenel, stride, padding)

    def forward(self, x):

        out = self.conv(x)

        return out

class convbn_3d(nn.Module):
    def __init__(self, in_planes, out_planes, kernel_size, stride, pad):
        super(convbn_3d, self).__init__()
        self.conv_3d = nn.Conv3d(in_planes, out_planes, kernel_size=kernel_size, padding=pad, stride=stride, bias=False)

    def forward(self, x):

        out = self.conv_3d(x)

        return out



def main():
    a = torch.rand(1, 24, 32, 64).cuda() #1/8
    torch.backends.cudnn.enabled = False
    net2d = convbn(24, 24, 3, 1, 1).cuda()
    net3d = convbn_3d(1, 1, 3, 1, 1).cuda()
    net2d.eval()
    net3d.eval()
    num = 50000

    # 2d
    torch.cuda.synchronize()
    start_time = time.time()
    for _ in range(num):
        out = net2d(a)
    torch.cuda.synchronize()   
    end_time = time.time()
    print('time = %.2f s' %((end_time - start_time)))
    flops, params = profile(net2d, inputs=(a, ))
    print('2d flops and params ', flops, params)    

    # 3d 
    torch.cuda.synchronize()
    start_time = time.time()
    a = a.unsqueeze(1)
    for _ in range(num):
        out = net3d(a)
    torch.cuda.synchronize()
    end_time = time.time()
    print('time = %.2f s' %((end_time - start_time)))
    flops, params = profile(net3d, inputs=(a, ))
    print('3d flops and params ', flops, params)




if __name__ == '__main__':
    main()


```
Thanks to  @ptrblck , I add the ` torch.cuda.synchronize()`  to my code , but I still get the unexpected results.
We test it by setting iterations to 50000 with  Nvidia P5000, the result is :
2D CONV   vs 3D CONV: 

1. Running time:     &emsp;          3.68s   VS  5.94s
2. Flops:           &emsp;&emsp;&emsp;&emsp;&ensp;             10M&nbsp;    VS  1.3 M
3. Params:        &emsp;&emsp; &emsp; &nbsp;           5208  VS   27 

2D net  has more flops but less running time which confuses me a lot .
Can anyone help?
Repository: flutter
Issue: Support subspecs in Flutter plugin podspecs
Labels: platform-ios,tool,d: api docs,P3,found in release: 1.20,a: plugins,team-ios,triaged-ios

We use a couple of plugins that require modifications to the PodFile.
With Flutter 1.20 it's been changed (again, also what's with the weird version numbers?)

The following library has no way of integrating now. https://pub.dev/packages/flutter_ffmpeg

If anyone knows a quick fix or a temporary solution that would be great!
Repository: go
Issue: cmd/cgo: Relocation overflow occurring when calling crosscall2 on aix/ppc64
Labels: NeedsInvestigation,OS-AIX,compiler/runtime

While trying to compile metricbeat (with go1.15rc1 and 1.14.6), we discovered that a relocation overflow might occur when a CGO generated file tries to call crosscall2. 
```
ld: 0711-780 SEVERE ERROR: Symbol .CallbackSubscr (entry 49130) in object /tmp/golang/000019.o:
       Relocation overflow in reference to: .crosscall2 (entry 6)
       Address: 0x0000004c;    RLD type: R_RBR;   RLD length: 26

```
I don't really know why ld isn't able to generate a trampoline but we don't want one anyway as it might end up being added inside Golang generated .text section, changing the offset, alignement, etc. The problem already happened with kubernetes where we decided to add `__attribute__((longcall))` for a few `runtime/cgo` functions (cf [gcc_aix_ppc64.c](https://github.com/golang/go/blob/master/src/runtime/cgo/gcc_aix_ppc64.c)). 

It's possible to do the same thing in generated CGO code ([here](https://github.com/golang/go/blob/master/src/cmd/cgo/out.go#L851)), but I don't know if it's possible to add it only for AIX ? Moreover, could it be merged for 1.15 (and maybe backported to 1.14) ? This error is not a new one, thus I don't remember if it's possible to merge it this late in the cycle. 

@fearful-symmetry
Repository: godot
Issue: Cannot view node signals and groups information in remote tab during running of game
Labels: bug,topic:editor,usability

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.2.2 stable

**OS/device including version:**
linux mint


**Issue description:**
When you are running a game and go to the remote option in the scene tab all you ever see in the Node tab is 'Select a single node to edit its signals and groups'. Inspector works fine.

This means that any signals added in code cannot be debugged or checked and all group information is missing. This is a pretty big omission. Each node has a 'get_groups( )' method so there is no technical difficulty, I don't know about connection functions...

It does this for every node type.

![image](https://user-images.githubusercontent.com/12863685/89516713-b2228e80-d7d0-11ea-85ac-98072f4f46ce.png)
Repository: go
Issue: cmd/compile: combine phielim and copyelim into a single pass?
Labels: NeedsInvestigation,compiler/runtime

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.14.3 windows/amd64
</pre>

### Does this issue reproduce with the latest release?
yes

### What did you do?

I find a todo tag in line 419 of the file cmd/compile/internal/ssa/compile.go. It seems that the previous developer was considering combing phielim and copyelim. Whether there's still interest in this? In fact I am reading the compiler source code recently and interested in this. Can I try to do this work. Could you give me some advices about what I should pay attention to?