sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: We don't have an op for vulkan_prepack::conv2d_clamp_prepack but it isn't a special case.
Labels: module: convolution,oncall: mobile,module: vulkan

### 🐛 Describe the bug

To reproduce, go to goggle colab and run this simple snipet

```python
from torch import nn
import torch
from torch.utils.mobile_optimizer import optimize_for_mobile

print(torch.__version__)

with torch.no_grad():
    x = torch.zeros(1, 3, 640, 640)
    model = torch.nn.Conv2d(3, 3, kernel_size=1)
    script_model = torch.jit.trace(model, x)
    optimized_traced = optimize_for_mobile(script_model, backend='vulkan')
    optimized_traced._save_for_lite_interpreter("sample_data/t.ptl")
```

```
1.12.1+cu113
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[<ipython-input-22-48d86b414602>](https://localhost:8080/#) in <module>
      9     model = torch.nn.Conv2d(3, 3, kernel_size=1)
     10     script_model = torch.jit.trace(model, x)
---> 11     optimized_traced = optimize_for_mobile(script_model, backend='vulkan')
     12     optimized_traced._save_for_lite_interpreter("sample_data/t.ptl")

[/usr/local/lib/python3.7/dist-packages/torch/utils/mobile_optimizer.py](https://localhost:8080/#) in optimize_for_mobile(script_module, optimization_blocklist, preserved_methods, backend)
     65             preserved_methods_str)
     66     elif backend == 'vulkan':
---> 67         optimized_cpp_module = torch._C._jit_pass_vulkan_optimize_for_mobile(script_module._c, preserved_methods_str)
     68     elif backend == 'metal':
     69         optimized_cpp_module = torch._C._jit_pass_metal_optimize_for_mobile(script_module._c, preserved_methods_str)

RuntimeError: 0 INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":608, please report a bug to PyTorch. We don't have an op for vulkan_prepack::conv2d_clamp_prepack but it isn't a special case.  Argument types: Tensor, Tensor, int[], int[], int[], int, NoneType, NoneType,
```

### Versions

pytorch version 1.12.1+cu113
Repository: stable-diffusion-webui
Issue: [Enhancement] Make X/Y plot script save grids even when option in Settings is disabled
Labels: enhancement

**Is your feature request related to a problem? Please describe.**
I usually don't save grids. When you run a x/y plot, if you forget to enable saving grids in Settings beforehand, you lose the plot itself. Which I thought was the point of said plot? 

**Describe the solution you'd like**
I would like X/Y plot function to automatically save the generated grid (plot) even when "Always save grids" is off in Settings.

Or maybe there could be two checkboxes that show in the respective page when you enable the function, one for saving the plot and another for saving individual images. Independent of the options in Settings.
Repository: rust
Issue: Compiler hangs on some types threading lifetimes through a carrier trait
Labels: T-compiler,C-bug,I-hang,A-implied-bounds

The following code hangs rustc stable 1.64, beta and nightly. It sits on 100% CPU doing rustc_middle things inside a `rustc_typeck::outlives::implicit_infer::infer_predicates > insert_outlives_predicate` operation. (**Edit**: by "rustc_middle things" I mean `<rustc_middle::ty::TyS as core::cmp::Ord>::cmp`.) I've let it run for at least half an hour to no avail.

```rust
struct Node<'a, G: NodeGenerics<'a>> {
    kind: Kind<'a, G>,
}

enum Kind<'a, G: NodeGenerics<'a>> {
    Empty,
    Var(Var<'a, G::R>),
}

trait NodeGenerics<'a> {
    type R: 'a;
}

struct RGen<T>(std::marker::PhantomData<T>);
impl<'a, T: 'a> NodeGenerics<'a> for RGen<T> {
    type R = T;
}

struct Var<'a, R: 'a> {
    node: Box<Node<'a, RGen<R>>>,
    _phantom: std::marker::PhantomData<R>,
}
```

You can change the code in a couple of small ways such that it won't hang.

1. Remove the "carrier trait" NodeGenerics, replace it with `T: 'a` and use `T` instead of `G::R`. You would think that adding a carrier trait with the same bounds would not really change anything. But it does. (In my code, NodeGenerics has a bunch of different types attached to it, which are used in many different arms of `Kind`. It makes everything a lot neater.)
2. Changing `RGen<T>` to just `RGen` and its implementation of `NodeGenerics` to have a constant `type R = ()`.
3. Don't use lifetimes at all, put `'static` bounds in everywhere instead, i.e. make NodeGenerics take `type R: 'static`.

I don't know why it's hanging on this, but rustc should never hang, so there you go. Bug report filed.
Repository: vscode
Issue: IntlBackslash swapped with Backquote on ISO keyboards on Chrome & Firefox
Labels: upstream,macos,keyboard-layout,web,upstream-issue-linked,chromium,firefox

The keybindings are broken on MacOS for "`" & "§". You can see this by going to https://vscode.dev / https://github.dev on MacOS, opening the keyboard shortcut picker, clicking on a shortcut to edit & pressing both them keys.

Alternatively you can reproduce by pressing "CTRL+`", to open the terminal which doesn't work

ScanCode 106 (106 in enum) is detected as `IntlBackslash` (§) when it should be "`" https://github.com/microsoft/vscode/blob/5e2f5e57cb2d3a222d43de51541b0eda207914e8/src/vs/base/common/keyCodes.ts#L334.


This is with the British layout:
<img width="694" alt="CleanShot 2022-10-12 at 15 28 58@2x" src="https://user-images.githubusercontent.com/13242392/195370427-a75d6474-3b5d-4c70-ab9b-1efca21ed244.png">
Repository: stable-diffusion-webui
Issue: Error loading embedding file
Labels: bug-report

Hi there, as long as I put an embedding file under /embeddings, the program will throw the info as follows:

Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: cc5803603b8591075542d99ae8596ab5b130a82f
Installing requirements for Web UI
Launching Web UI with arguments:
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Loading weights [45dee52b] from C:\Users\sgpt5\stable-diffusion-webui\models\Stable-diffusion\model.ckpt
Global Step: 487750
Applying cross attention optimization (Doggettx).
Model loaded.
**Error verifying pickled file from C:\Users\sgpt5\stable-diffusion-webui\embeddings\mignon-62500.pt:
Traceback (most recent call last):
  File "C:\Users\sgpt5\stable-diffusion-webui\modules\safe.py", line 76, in check_pt
    with zipfile.ZipFile(filename) as z:
  File "C:\Users\sgpt5\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1267, in __init__
    self._RealGetContents()
  File "C:\Users\sgpt5\AppData\Local\Programs\Python\Python310\lib\zipfile.py", line 1334, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\sgpt5\stable-diffusion-webui\modules\safe.py", line 97, in load
    check_pt(filename)
  File "C:\Users\sgpt5\stable-diffusion-webui\modules\safe.py", line 89, in check_pt
    unpickler.load()
_pickle.UnpicklingError: invalid load key, '\x0a'.


The file may be malicious, so the program is not going to read it.
You can skip this check with --disable-safe-unpickle commandline argument.
Error loading emedding mignon-62500.pt:
Traceback (most recent call last):
  File "C:\Users\sgpt5\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 132, in load_textual_inversion_embeddings
    process_file(fullfn, fn)
  File "C:\Users\sgpt5\stable-diffusion-webui\modules\textual_inversion\textual_inversion.py", line 102, in process_file
    if 'string_to_param' in data:
TypeError: argument of type 'NoneType' is not iterable

Loaded a total of 0 textual inversion embeddings.**
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.

I've been up-to-date and tried different embedding files, using Waifu Diffusion 1.2 weights and corresponding embedding file.
Repository: rust
Issue: Missing implied lifetime bounds for method with GAT in return position
Labels: C-bug,T-types,A-GATs

The following example fails to compile:

```rust
pub trait Foo<'foo>: 'foo {
    type Bar<'bar>
    where
        'foo: 'bar;

    fn baz(&self) -> Self::Bar<'_>;
}

impl<'foo, T, U> Foo<'foo> for T
where
    T: Deref<Target = U> + 'foo,
    U: Foo<'foo>,
{
    type Bar<'bar> = <U as Foo<'foo>>::Bar<'bar>
    where
        'foo: 'bar;

    fn baz(&self) -> Self::Bar<'_> {
        (**self).baz()
    }
}
```

The error message is:

```quote
error[E0478]: lifetime bound not satisfied
  --> examples/implicit.rs:69:5
   |
69 | /     fn baz(&self) -> Self::Bar<'_> {
70 | |         (**self).baz()
71 | |     }
   | |_____^
   |
note: lifetime parameter instantiated with the lifetime `'foo` as defined here
  --> examples/implicit.rs:60:6
   |
60 | impl<'foo, T, U> Foo<'foo> for T
   |      ^^^^
note: but lifetime parameter must outlive the anonymous lifetime defined here
  --> examples/implicit.rs:69:12
   |
69 |     fn baz(&self) -> Self::Bar<'_> {
   |            ^^^^^

For more information about this error, try `rustc --explain E0478`.
```

This error message is a bit surprising, because the lifetime bounds are specified on the generic associated type: `type Bar<'bar> where 'foo: 'bar;` . I had expected that Rust would be able to automatically infer these bounds from the GAT declaration instead of giving an error. By using the information that the GAT is used in the return position, these implicit lifetime bounds could be automatically applied.

<details>
<summary>If we explicitly spell out all the implicit bounds on `fn baz`, then it does compile:</summary>

```rust
pub trait Foo<'foo>: 'foo {
    type Bar<'bar>
    where
        'foo: 'bar;

    fn baz<'bar>(&'bar self) -> Self::Bar<'bar>
    where
        'foo: 'bar;
}

impl<'foo, T, U> Foo<'foo> for T
where
    T: Deref<Target = U> + 'foo,
    U: Foo<'foo>,
{
    type Bar<'bar> = <U as Foo<'foo>>::Bar<'bar>
    where
        'foo: 'bar;

    fn baz<'bar>(&'bar self) -> Self::Bar<'bar>
    where
        'foo: 'bar,
    {
        (**self).baz()
    }
}
```

</details>

<details>
<summary>p.s. I am on this Rust version</summary>

```quote
rustc 1.66.0-nightly (0ca356586 2022-10-06)
binary: rustc
commit-hash: 0ca356586fed56002b10920fd21ddf6fb12de797
commit-date: 2022-10-06
host: x86_64-unknown-linux-gnu
release: 1.66.0-nightly
LLVM version: 15.0.2
```

</details>
Repository: go
Issue: sum.golang.org: returns 404 not found for an existing version of very large repo
Labels: NeedsInvestigation,proxy.golang.org

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.19.2 linux/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?


<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tom/.cache/go-build"
GOENV="/home/tom/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/tom/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tom/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build1236717261=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

Update the `ignite/cli` dependency in a module to a newer version [dffafa16f6fd91d9ef4462570038210c518d08dd](https://github.com/ignite/cli/commit/dffafa16f6fd91d9ef4462570038210c518d08dd)

```sh
$ go get github.com/ignite/cli@dffafa16f6fd91d9ef4462570038210c518d08dd
go: downloading github.com/ignite/cli v0.24.1-0.20221012132336-dffafa16f6fd
go: github.com/ignite/cli@dffafa16f6fd91d9ef4462570038210c518d08dd: github.com/ignite/cli@v0.24.1-0.20221012132336-dffafa16f6fd: verifying module: github.com/ignite/cli@v0.24.1-0.20221012132336-dffafa16f6fd: reading https://sum.golang.org/lookup/github.com/ignite/cli@v0.24.1-0.20221012132336-dffafa16f6fd: 404 Not Found
	server response: not found:
```

The problem is reproducible without using a specific module :

1. Fetch the pseudo-version 

```sh
$ go list -m -json github.com/ignite/cli@dffafa16f6fd91d9ef4462570038210c518d08dd
{
	"Path": "github.com/ignite/cli",
	"Version": "v0.24.1-0.20221012132336-dffafa16f6fd",
	"Query": "dffafa16f6fd91d9ef4462570038210c518d08dd",
	"Time": "2022-10-12T13:23:36Z",
	"Origin": {
		"VCS": "git",
		"URL": "https://github.com/ignite/cli",
		"TagSum": "t1:yeejinhZSpi1V0OWB9y12hJfyz/MNKldv/v/ajQ87xE=",
		"Hash": "dffafa16f6fd91d9ef4462570038210c518d08dd"
	}
}
```

2. Request sumdb with the pseudo-version 

```sh
$ curl https://sum.golang.org/lookup/github.com/ignite/cli@v0.24.1-0.20221012132336-dffafa16f6fd
not found: 
```

### What did you expect to see?

`sum.golang.org` should return the checksum data instead of 404.

### What did you see instead?

`sum.golang.org` returns a 404 not found error.
Repository: godot
Issue: Adding lots of new Area2d nodes and/or freeing them takes forever (freezing the project).
Labels: bug,topic:core,topic:physics,regression,performance

### Godot version

(mono) 4.0 b2

### System information

Windows 10, Nvidia GTX 1660Ti, Vulkan

### Issue description

This is probably not a bug report per se and I know that godot 4.0 is in early beta, I just wanted to bring the subject up and ask about it too, I understand that we are at the phase of bug fixing and optimizations. :-)

This is probably not a bug report but I was testing a 3.5 report about some crash on areas and wanted to see how it works in 4.0, it doesn't crash but the entire project freezes for long when you try to add lots of areas, I've tried two ways:

1. adding 1000 areas in one frame
2. adding 10 areas per frame, total at the end was again 1000

To clarify, all areas are at the same position (overlapping), default settings, added through a script.
Both ways the project freezes for seconds.

I then tried to `QueueFree` all the areas and that also takes a lot of time.

In comparison, doing the same in godot 3.5 it takes fraction of a second or so to add the areas in one frame, freeing them crashes it though.

### Steps to reproduce

Add a number of Area2d nodes at the same position (higher numbers, for example 1000+).

### Minimal reproduction project

I can add one if needed but is it needed?
Repository: stable-diffusion-webui
Issue: Option to save as PNG if embedding is used
Labels: enhancement

A recent commit added the option to save embeddings as PNG chunks. I normally use JPG for saving images. Would be useful to be able to automatically save images as PNG when an embedding is used
Repository: pytorch
Issue: TF32 conv_transpose2d with groups has bad precision compared to fp32
Labels: module: numerical-stability,module: cuda,triaged,module: tf32

### 🐛 Describe the bug

## Discussion

It's unclear to me if this is a bug or expected behavior, so I'm opening this issue to discuss. https://pytorch.org/docs/stable/notes/cuda.html#tf32-on-ampere suggests that TF32's precision isn't as good as fp32, though the numbers look very different to me in this particular case

## Repro

```py
import torch
import torch.nn.functional as F
from torch.testing import make_tensor

torch.manual_seed(0)

torch.backends.cudnn.allow_tf32 = True

x = make_tensor(1, 2 * 4, 5, 5, dtype=torch.float32, device='cuda')
w = make_tensor(2 * 4, 8, 3, 3, dtype=torch.float32, device='cuda')

result = F.conv_transpose2d(x, w, groups=2).double()
expected = F.conv_transpose2d(x.double(), w.double(), groups=2)

amax = result.sub(expected).div(expected).abs().argmax()
print("% difference: ", result.sub(expected).div(expected).abs().max())
print("values: ", result.view(-1)[amax], expected.view(-1)[amax])
```
Gives the following:
```
% difference:  tensor(0.2066, device='cuda:0', dtype=torch.float64)
values:  tensor(0.0278, device='cuda:0', dtype=torch.float64) tensor(0.0350, device='cuda:0', dtype=torch.float64)
```
There is a 20% relative difference!

Furthermore, setting `torch.backends.cudnn.allow_tf32 = False` makes the difference go back down to 7.6725e-05. Also, using `groups=1` also makes the difference go down to something in the 1e-05 range.

### Versions

nightly; using a A100 GPU

cc @ezyang @gchanan @ngimel @zasdfgbnm @ptrblck
Repository: electron
Issue: [Feature Request]: Chrome Extension host_permissions permisions
Labels: enhancement :sparkles:

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Problem Description

Hi, I can add host_permissions to a Chrome Extention, if I add it, application will be crash.

### Proposed Solution

support host_permissions to Chrome Extention

### Alternatives Considered

no

### Additional Information

_No response_
Repository: godot
Issue: Crash on integer division by zero
Labels: bug,topic:gdscript,crash

### Godot version

3.4.4, also has being seen in 3.5.1

### System information

Windows 11

### Issue description

Thats super strange. If assertion is false in `_get` method in Autoload, godot console closes when a game crashes becouse of any error. 
![image](https://user-images.githubusercontent.com/66486400/195398209-1a88738f-92c9-4974-908d-f0f501d2e02a.png)
![image](https://user-images.githubusercontent.com/66486400/195398247-a2a52885-d967-44ab-a493-ec8a071d7b8d.png)

![gif10](https://user-images.githubusercontent.com/66486400/195398599-e3870593-af88-41d6-b2f9-e1f5470596ae.gif)


### Steps to reproduce

1) Create an Autoload
2) Override `_get` method
3) Add `assert(<smth>)` inside `_get`; `<smth>` should not be identical to a true
4) Add any code raising an error to any place in project

### Minimal reproduction project

[asasasas.zip](https://github.com/godotengine/godot/files/9766982/asasasas.zip)
Repository: flutter
Issue: AdaptiveLayout delegate animating primaryNavigation sequentially instead of in parallel
Labels: package,team-ecosystem,has reproducible steps,P3,p: flutter_adaptive_scaffold,found in release: 3.4,found in release: 3.5,triaged-ecosystem

## Steps to Reproduce

1. Execute ` flutter run -d chrome lib/adaptive_layout_demo.dart` in the `flutter_adaptive_scaffold` project
2. As the app is sized between medium and small breakpoints, the primary nav bar animates in and out of the screen

**Expected results:**

The primary navigation bar animates in nicely. The icons slide in with the background area from off screen to on screen.
When the navigation bar animates out, I would expect the animation to reverse and show the icons sliding away with its container off the screen. The bottom nav bar animates like this.

**Actual results:**

During the primary nav bar's "out" animation, the icons disappear in a flash, then the slot animates off the screen.

I think the intent is for the `primaryNavigation` `outAnimation` to control the SlotLayout and its child. This is how the `bottomNavigation` is configured in the demo. Because `primaryNavigation` has only an `inAnimation` specified, the `NavigationRailBar` is just disappearing at the beginning of the animation.

However, there appears to be a bug in the layout delegate. It is not animating the SlotLayout and its child together, it is animating them sequentially. For example, if you place the `outAnimation` on the `primaryNavigation`, you can see the effect.

```dart
Breakpoints.medium: SlotLayout.from(
  inAnimation: AdaptiveScaffold.leftOutIn,
  outAnimation: AdaptiveScaffold.leftInOut,   // <-- added this
  key: const Key('Primary Navigation Medium'),
  builder: (_) => AdaptiveScaffold.standardNavigationRail(
    leading: const Icon(Icons.menu),
    destinations: destinations
        .map((_) => AdaptiveScaffold.toRailDestination(_))
        .toList(),
  ),
),
```

The out animation for the `primaryNavigation` executes the `outAnimation` for my `SlotLayout`, and then sequentially executes the animation for the primary navigation's container, causing a snap shut effect. 

https://user-images.githubusercontent.com/297712/195400524-6b7ef6fa-a1b1-4162-bad0-be9e6f856039.mov
Repository: ant-design
Issue: Wide table with fixed header is broken
Labels: Inactive

### Reproduction link

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/antd-reproduction-template-forked-zvycus?file=/index.js)

### Steps to reproduce

- create table with fixed header
- put column without fixed width in between of columns with fixed width

### What is expected?

column widths should be calculated properly

### What is actually happening?

calculated width for column without explicit width is set to 0

| Environment | Info |
| --- | --- |
| antd | 4.23.5 |
| React | 18 |
| System | Mac OS |
| Browser | Safari |

---
it's fixable by specifying `x` property in `scroll`

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: vscode
Issue: Add workspace folder path to context keys.
Labels: feature-request,context-keys

I'm looking to display a context menu command for specific workspace folders and all folders/files included in it. I am able to determine the supported projects and set a 'supportedProjects' using setContext, but there doesn't seem to be a way for me to match that up with the right click context since there isn't a workspace folder path context key. Would it be possible to add this?
Repository: godot
Issue: Converter 3 -> 4: ImageTexture's create_from_image is not converted, resulting in a silent bug
Labels: bug,topic:editor

### Godot version

v4.0.beta.custom_build [18d2035a3]

### System information

Windows 10

### Issue description

ImageTexture's create_from_image was changed to a static function that returns a result,. During a migration process from 3.x to 4.x there is no warning, comment or error for this, which means code such as:

```GDScript
# 3.x
var my_img :Image = Image.new()
var my_texture :ImageTexture = ImageTexture.new()
	
my_img.create_from_data(32, 32, false, Image.FORMAT_RGBA8, some_data)
my_texture.create_from_image(my_img) # This line should have changed in some way
$some_TextureRect.texture = my_texture
```

will not be changed in the conversion process and silently not work (in part because of https://github.com/godotengine/godot/issues/66100 )

A potential fix would be to alter the line indicated above to:
```GDScript
my_texture = my_texture.create_from_image(my_img) # Now it works
```

I'd like to take this opportunity to please request a list (or a way to check) of functions that are now static and/or have a return value that didn't in 3.x

### Steps to reproduce

Code shown above.

### Minimal reproduction project

_No response_