sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Context manager to enable/disabled TensorFloat32 on demand
Labels: triaged,module: tf32

### 🚀 The feature, motivation and pitch

Currently, it is only possible to enable/disable TensorFloat32 at the global level (see [the docs](https://pytorch.org/docs/stable/notes/cuda.html#tensorfloat-32-tf32-on-ampere-devices)):
```
torch.backends.cuda.matmul.allow_tf32 = False
torch.backends.cudnn.allow_tf32 = False
```
(Similar code is possible in C++.)

The proposed feature is a context manager, something along the lines of:
```python
with torch.allow_tf32(False/True):
    b = torch.matmul(M, a)   # whatever
```
that sets it locally for a given block of operations in both the forward and backward pass.
Ideally, this would be TorchScript compatible and just act as a no-op on non-CUDA platforms.

## Motivation
We work on E(3)-equivariant networks where the equivariance is enforced by the use of special constant coefficient matrices in certain operations. My initial tests seem to demonstrate that enabling TF32 makes the numerical precision of the equivariance much, much worse--- likely unacceptably so. Despite this, it would be nice to be able to take advantage of TF32 performance in parts of the model where its loss of precision shouldn't matter.

### Alternatives

 - Don't use TensorFloat32 at all (current approach)

 - Enable TensorFloat32 but use `float64` for calculations that need more precision

Is the second option correct? The docs say:
> TF32 tensor cores are designed to achieve better performance on matmul and convolutions on torch.float32 tensors

Does this mean it is never used for `float64` tensors?

 - Some kind of `torch.float32_full` dtype that acts as `float32`, except TF32 is never used in calculations involving it. (So matmul `float32 * float32` would use TF32 according to the global on/off switch, but `float32_full * float32_full` wouldn't use it under ay circumstances.)

### Additional context

I have a lot more testing to do before I can confidently say that global TF32 is an issue and that something like this would solve it, but I wanted to post now already to get a sense of how plausible a feature request like this would be— impossible? fairly trivial?

Thank you for all the work done to make NVIDIA's latest performance developments available to your users in such easy-to-use ways!

cc @zasdfgbnm @ptrblck
Repository: godot
Issue: No longer possible to edit shader and shader parameters at the same time
Labels: topic:editor,usability,topic:shaders

### Godot version

3.4 stable

### System information

macOS

### Issue description

Not so much a bug as a regression in usability.

Prior to 3.4, clicking on a shader would open the shader editor, and expand the shader resource within the current inspector:

https://user-images.githubusercontent.com/33777501/146063132-f663344a-1164-4695-ab32-4aa19a3f633f.mov



Now, in 3.4, clicking the shader opens the shader resource in its own inspector:


https://user-images.githubusercontent.com/33777501/146064705-80c5cdbc-a644-4c5e-a8de-8e2151e09637.mov


Don't know which PR changed this, and it makes sense I suppose, but now you lose access to the shader parameters. And since you almost always want to play with parameters as you're writing a shader, this is highly inconvenient. I'm not sure if this is addressed in a nice way for 4.0, but in the meantime this is not really usable. I can think of two decent and simple solutions, either:

-  revert to previous behavior

    or

- make the shader editor always accessible from the bottom panel with the last shader edited, and don't auto-hide it unless necessary (this should be done regardless IMO)


### Steps to reproduce

click a shader to edit it

### Minimal reproduction project

N/A
Repository: flutter
Issue: Implement new `replacedBy` dart fix for current and prior deprecations
Labels: team,framework,dependency: dart,P3,c: tech-debt,team-framework,triaged-framework

The dart fix has a new feature, `replacedBy`. This allows us to make transformations across classes.
The feature resolved https://github.com/dart-lang/sdk/issues/45393, which has some example use cases.

We should implement this for current deprecations, and check to see if any past deprecations that have already been removed can be supplied a fix.

⭐  It has not been confirmed that we can provide fixes for these, but they should each be investigated. Some may still be too complex to reliably migrate, or may not provide a better experience to the developer if it can only partially be fixed.

Might be able to fix, will check them off as they are investigated:

| | Old API | New API |
| --- | --- | ---|
| ✅  | DayPicker | CalendarDatePicker |
| ✅  | MonthPicker | CalendarDatePicker |
| ✅  | FlatButton | TextButton |
| ✅  | OutlineButton | OutlinedButton |
| ✅  | RaisedButton | ElevatedButton |
|  | Scaffold.[snackbars] | ScaffoldMessenger.[snackbars] |
|  | BlacklistingTextInputFormatter | FilteringTextInputFormatter |
|  | WhitelistingTextInputFormatter | FilteringTextInputFormatter |
|  | CupertinoNavigationBar.actionsForegroundColor | CupertinoTheme.primaryColor |
|  | CupertinoSliverNavigationBar.actionsForegroundColor | CupertinoTheme.primaryColor |
|  | ButtonTheme.bar | ButtonBarTheme |

These are just the ones I thought of or saw might be possible from the ones we have announced. If anyone can think of others, let us know and we'll add them to the list!
Repository: pytorch
Issue: [JIT] torch.exp roughly 20 times slower in TorchScript vs. PyTorch
Labels: oncall: jit,Stale

### 🐛 Describe the bug

I'm seeing roughly a factor of 20 slower when using torch.exp with a torch.jit.script decorated function vs. PyTorch. I timed this with torch.cuda events, which I removed from the code. I can put those back in if anyone would like to see my timing procedure.

```python
import torch

def compute_exp(tensor):
    return torch.exp(tensor)

@torch.jit.script
def compute_exp_jit(tensor):
    return torch.exp(tensor)

tensor = torch.ones([500], device=torch.device('cuda'))

#Use torch.exp with PyTorch
compute_exp(tensor)

#Use torch.exp with torch.jit.script
compute_exp_jit(tensor)
```

### Versions

```
PyTorch version: 1.10.0
Is debug build: False
CUDA used to build PyTorch: 11.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.3 LTS (x86_64)
GCC version: (Ubuntu 8.4.0-1ubuntu1~18.04) 8.4.0
Clang version: Could not collect
CMake version: version 3.18.3
Libc version: glibc-2.27

Python version: 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:23:11)  [GCC 9.4.0] (64-bit runtime)
Python platform: Linux-4.15.0-46-generic-x86_64-with-glibc2.27
Is CUDA available: True
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 460.32.03
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.21.4
[pip3] torch==1.10.0
[pip3] torchaudio==0.10.0
[pip3] torchvision==0.11.1
[conda] blas                      1.0                         mkl    conda-forge
[conda] cpuonly                   2.0                           0    pytorch
[conda] cudatoolkit               11.2.2               he111cf0_9    conda-forge
[conda] libblas                   3.9.0            12_linux64_mkl    conda-forge
[conda] libcblas                  3.9.0            12_linux64_mkl    conda-forge
[conda] liblapack                 3.9.0            12_linux64_mkl    conda-forge
[conda] magma                     2.5.4                h6103c52_2    conda-forge
[conda] mkl                       2021.4.0           h06a4308_640  
[conda] numpy                     1.21.4           py39hdbf815f_0    conda-forge
[conda] pytorch                   1.10.0          cuda112py39h4e14dd4_0    conda-forge
[conda] pytorch-gpu               1.10.0          cuda112py39h0bbbad9_0    conda-forge
[conda] pytorch-mutex             1.0                         cpu    pytorch
[conda] torchaudio                0.10.0                 py39_cpu  [cpuonly]  pytorch
[conda] torchvision               0.11.1                 py39_cpu  [cpuonly]  pytorch
```
Repository: create-react-app
Issue: Create-react-app stuck on v4.0.3, cannot create a new app
Labels: needs triage,issue: bug report


### Describe the bug

When attempting to use `npx create-react-app <app-name>`, I get the following error:
```
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app
```
What I have tried to fix it:
1) Run `npm uninstall -g create-react-app` to uninstall any global versions of create-react-app
2) Run `npm i -g npm@latest` to update npm
3) Run `npm uninstall -g create-react-app && sudo npm cache clean -f` to try and clean any cached information regarding `create-react-app`.

Below is a gif showing the issue in real time.
![](https://user-images.githubusercontent.com/58048729/146085621-f2a1fa1b-ab2a-4ea2-adc1-af3f0ac511bb.mov)

### Which terms did you search for in User Guide?

Latest release

### Environment

Unfortunately, the `npx create-react-app info` command ends up with the same error.

I am currently on Mac v12.0.1. Please request more info if needed.

### Steps to reproduce

1. Attempt to run `npx create-react-app <app-name-here>`

### Expected behavior

A React app is created.

### Actual behavior

`create-react-app` errors due to incorrect version. 

<img width="649" alt="image" src="https://user-images.githubusercontent.com/58048729/146086609-7cef8dd1-1127-439d-b819-b7f727eba1a1.png">
Repository: react
Issue: DevTools: Consider replacing postMessage with BroadcastChannel
Labels: Type: Discussion,Component: Developer Tools

We could build on the changes made in #22949 to update the DevTools _extension_ to use [`BroadcastChannel`](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel) for communication rather than [`Window.postMessage`](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage). This might improve performance but we would need to investigate.

`BroadcastChannel` can also be explicitly _closed_ which might simplify cleanup.
Repository: create-react-app
Issue: Import statement in module error with Yarn 3.x
Labels: needs triage,issue: bug report

### Describe the bug

I can't run Jest with Yarn 3 and CRA 5

### Did you try recovering your dependencies?
yes; `yarn --version` is 3.1.1

### Which terms did you search for in User Guide?
n/a

### Environment
`yarn dlx create-react-app --info`: 
```
Environment Info:

  current version of create-react-app: 5.0.0
  running from /Users/suman/.yarn/berry/cache/create-react-app-npm-5.0.0-afe57ebee6-8.zip/node_modules/create-react-app

  System:
    OS: macOS 12.1
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  Binaries:
    Node: 17.2.0 - /private/var/folders/j8/_wc022w91rvctlq5_t8xqcvc0000gn/T/xfs-bcd1d987/node
    Yarn: 3.1.1 - /private/var/folders/j8/_wc022w91rvctlq5_t8xqcvc0000gn/T/xfs-bcd1d987/yarn
    npm: 8.1.4 - /usr/local/bin/npm
  Browsers:
    Chrome: 96.0.4664.93
    Edge: Not Found
    Firefox: Not Found
    Safari: 15.1
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found
```

### Steps to reproduce


(Write your steps here:)

1. `yarn create react-app my-app --template typescript && cd my-app`
2. `yarn set version berry`
3. `yarn dedupe`
4. `yarn run test` outputs the error below

### Expected behavior

I expect jest to run normally

### Actual behavior
`yarn run etst` outputs this: 
```
Error: Failed to initialize watch plugin ".yarn/__virtual__/jest-watch-typeahead-virtual-7373570042/0/cache/jest-watch-typeahead-npm-1.0.0-0c228b0e38-388d518974.zip/node_modules/jest-watch-typeahead/build/file_name_plugin/plugin.js":

  ● Test suite failed to run

    .../tmp/my-app/.yarn/__virtual__/jest-watch-typeahead-virtual-7373570042/0/cache/jest-watch-typeahead-npm-1.0.0-0c228b0e38-388d518974.zip/node_modules/jest-watch-typeahead/build/file_name_plugin/plugin.js:1
    import { Prompt } from 'jest-watcher';
    ^^^^^^

    SyntaxError: Cannot use import statement outside a module

      25811 |     try {
      25812 |       module.isLoading = true;
    > 25813 |       module.load(modulePath);
            |              ^
      25814 |       hasThrown = false;
      25815 |     } finally {
      25816 |       module.isLoading = false;

      at Function.external_module_.Module._load (.pnp.cjs:25813:14)

```

### Reproducible demo

repro steps above—no other code or files required
Repository: flutter
Issue: Run engine unit-tests with concurrent work pool counts capped to their minimum.
Labels: engine,P2,team-engine,triaged-engine

Today, this number is derived from available hardware concurrency. The minimum is 1 worker to handle cases where the logical core count cannot be read.

Since there is an upper bound on the number of workers in thread pool, there may be cases where inter task dependencies will end up deadlocking.

While there isn't a good way to statically detect such dependencies, it ought to be a good idea to artificially limit the number of workers to the minimum supported (1) when running all unit-tests. The benchmark runners can keep their defaults.
Repository: ant-design
Issue: Cascader matchInputWidth not yet  working as expected
Labels: 🐛 Bug,Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://stackblitz.com/edit/react-bmac8f](https://stackblitz.com/edit/react-bmac8f)

### Steps to reproduce
输入框输入值搜索时,搜索结果列表没有与输入框同宽

### What is expected?
设置matchInputWidth为true,搜索结果列表与输入框同宽

### What is actually happening?
设置matchInputWidth为true,但搜索结果列表没有与输入框同宽

| Environment | Info |
|---|---|
| antd | 4.17.3 |
| React | 16.8 |
| System | windows |
| Browser | chrome |

---
相关issue[25779](https://github.com/ant-design/ant-design/issues/25779)，在我的stackblitz例子中的结果并未与issue[25779](https://github.com/ant-design/ant-design/issues/25779)一致


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: node
Issue: create coredump with running in inspect
Labels: inspector

### Version

14.18.2

### Platform

Linux n248-141-178 4.19.117.bsk.6-amd64 #4.19.117.bsk.6 SMP Debian 4.19.117.bsk.6 Mon Jan 4 07:25:51 UTC x86_64 GNU/Linux

### Subsystem

_No response_

### What steps will reproduce the bug?

create coredump with running in inspect

### How often does it reproduce? Is there a required condition?

Appear at random times
Suspect something node run with Inspect   

### What is the expected behavior?

node progress running normal

### What do you see instead?

(llnode) bt
thread #1, name = 'node', stop reason = signal SIGSEGV
    frame #0: 0x00007fe1fe74d305 libc.so.6`___lldb_unnamed_symbol994$$libc.so.6 + 741
    frame #1: 0x00007ffc46bd55c5 node`node::inspector::(anonymous namespace)::WsHandler::OnData(std::vector<char, std::allocator<char> >*) + 645
    frame #2: node`uv__read(stream=<unavailable>) at stream.c:1239
    frame #3: node`uv__stream_io(loop=<unavailable>, w=<unavailable>, events=<unavailable>) at stream.c:1306
    frame #4: node`uv__io_poll at linux-core.c:462
    frame #5: node`uv_run(loop=<unavailable>, mode=<unavailable>) at core.c:385
    frame #6: 0x00007ffc46bc975e node`node::inspector::InspectorIo::ThreadMain() + 1662
    frame #7: 0x00007fe1fe9ca4a4 libpthread.so.0`start_thread + 196
    frame #8: 0x00007fe1fe70cd0f libc.so.6`clone + 63

### Additional information

_No response_
Repository: pytorch
Issue: FeatureAlphaDropout doesn't drop channels for (C, D, H, W)
Labels: module: nn,triaged,module: batching,Stale

### 🐛 Describe the bug

Related #69801

`FeatureAlphaDropout` also has similar problem.

```python
import torch
import torch.nn as nn
from torch.testing._internal.common_utils import freeze_rng_state

m = nn.FeatureAlphaDropout(p=0.5)
input = torch.randn(2, 2, 2, 2)

with freeze_rng_state():
    output_unbatched = m(input)

# Batched case
with freeze_rng_state():
    output_batched = m(input.unsqueeze(0)).squeeze(0)

torch.testing.assert_allclose(output_batched, output_unbatched)
```

### Versions

Latest master

cc @albanD @mruberry @jbschlosser @walterddr @kshitij12345
Repository: godot
Issue: Cannot quit the editor with ALT-F4 or CTRL-Q when "save on focus loss" is active
Labels: bug,topic:editor

### Godot version

3.4, 3.4.1, 3.5.beta

### System information

Linux (openSUSE tumbleweed) nvidia (proprietary module)

### Issue description

When activating the "save on focus loss" editor setting and trying to quit the engine using a keyboard shortcut the "Please confirm..." dialog appears. Underneath the editor saves the changes and seems to reset the quit status. Selecting any option from the "Please Confirm..." close dialog has no effect.

### Steps to reproduce

1. Open any project
2. Set the "save on focus loss" editor setting to true
3. Press `CTRL-Q` or `ALT-F4`
4. Select "Quit"
5. The editor doesn't quit

### Minimal reproduction project

_No response_
Repository: flutter
Issue: Flutter "in_app_purchase" plugin does not provide any token after completing or restoring the purchases. 
Labels: platform-android,p: in_app_purchase,package,P2,team-android,triaged-android

On the other hand found a link where it was said there will be a token required for sent to back end after in app purchase complete in the application, this is the link : https://gist.github.com/jamesmosier/8a0d3aa31129f00f92963180376b979f


After completing the purchase getting this data in for of JSON : 
(No token is available for sending in the backend)
{
    "purchaseID":"Combination of string and int",
    "productID":"1",
    "transactionDate":"2021-12-15",
    "verificationData":{
        "localVerificationData":"String",
        "serverVerificationData":"String",
        "source":"String"
    }
}
Repository: go
Issue: x/website: links in header/footer of tip.golang.org should redirect to pkgsite at tip
Labels: NeedsFix

It seems that with the shift towards pkgsite (pkg.go.dev), now clicking on the https://tip.golang.org > "Packages" link does not make it possible to browse the stdlib packages in "tip" (since it just sends the user to the https://pkg.go.dev/ homepage, which has no indication of "tip" that the user can easily find.)

This wasn't always the case: http://web.archive.org/web/20190318200504/https://tip.golang.org/pkg/ In the past, clicking Packages from the navbar showed the visitor package documentation from the tip.

**Proposal:** clicking on Packages from the navbar on tip.golang.org should send the user to a page where they can browse the packages at the tip, such as `https://pkg.go.dev/@master` but that does not work, I think (although the `@master` suffix for the URL works if the rest of the URL is a valid package name).
Repository: godot
Issue: visualscript set variable not working when there is only one variable
Labels: bug,topic:editor,topic:visualscript

### Godot version

3.4.stable.mono

### System information

Ubuntu Linux

### Issue description

I've tried to set variable in visual scripts. It not work properly if there is only 1 variable to set.

![image](https://user-images.githubusercontent.com/5770600/146132080-dafbe50f-a82d-4b5d-be68-91002d5635a4.png)


### Steps to reproduce

1. Create a visual script
2. Create only 1 variable (may be integer)
3. add Set Variable Node
4.  Selected the new Set Variable Node
5. at the inspector try to select variable, and it not updated in visual script.


It will work properly if there are 2 variables for Set Node.

### Minimal reproduction project

_No response_
Repository: flutter
Issue: [Camera] IOS leave background audio uninterrupted when video record is initiated
Labels: c: new feature,platform-ios,p: camera,package,c: proposal,P3,team-ios,triaged-ios

Hi guys I'm writing a snapchat clone and part of the app requires background audio to be uninterrupted when the video recording feature is initiated. Please implement a feature and fast to the camera package which allows us to have control over whether the background audio is paused or continued (uninterrupted). Thank you, this is a highly popular feature and many developers will need this feature in their future projects.
Repository: pytorch
Issue: torch.nn.DataParallel caused inference failure with cpu set as device on NV machine
Labels: needs reproduction,triaged,module: data parallel,Stale

### 🐛 Describe the bug

# reproduce steps:

import torch
import torchvision

model = torchvision.models.quantization.__dict__['resnet18'](pretrained=True, quantize=False)
model = torch.nn.DataParallel(model)
model.to("cpu")
for i, (input, target) in enumerate(val_loader):
  output = model(input)


### Versions

Collecting environment information...
PyTorch version: 1.9.1+cu102
Is debug build: False
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.3 LTS (x86_64)
GCC version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Clang version: Could not collect
CMake version: version 3.10.2
Libc version: glibc-2.17

Python version: 3.6.13 |Anaconda, Inc.| (default, Jun  4 2021, 14:25:59)  [GCC 7.5.0] (64-bit runtime)
Python platform: Linux-4.15.0-55-generic-x86_64-with-debian-buster-sid
Is CUDA available: True
CUDA runtime version: 10.2.89
GPU models and configuration: 
GPU 0: NVIDIA Tesla P100-PCIE-16GB
GPU 1: NVIDIA Tesla P100-PCIE-16GB
GPU 2: NVIDIA Tesla P100-PCIE-16GB
GPU 3: NVIDIA Tesla P100-PCIE-16GB

Nvidia driver version: 465.19.01
cuDNN version: Probably one of the following:
/usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_adv_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8
/usr/local/cuda-11.3/targets/x86_64-linux/lib/libcudnn_ops_train.so.8
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.5
[pip3] torch==1.9.1
[pip3] torchvision==0.10.1
[conda] numpy                     1.19.5                   pypi_0    pypi
[conda] torch                     1.9.1                    pypi_0    pypi
[conda] torchvision               0.10.1                   pypi_0    pypi
Repository: vscode
Issue: Can't delete row from setting
Labels: bug,settings-editor,confirmed

1. Search for `terminal auto` in settings
2. Try removing the only row on that table by clicking the `X`

![image](https://user-images.githubusercontent.com/22350/146147222-0c2ac5a0-5f82-42d4-a14b-e343d7620d56.png)

cc @Tyriar
Repository: go
Issue: x/vulndb: have Report.Lint return warnings
Labels: NeedsInvestigation,FeatureRequest,vulncheck or vulndb

It might make sense for `internal/report/Report.Lint` to include warnings or informational things alongside errors, especially for use during the triage process.