sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Quadric Layer
Labels: feature,module: nn,triaged,needs research

### 🚀 The feature, motivation and pitch

Introducing a layer with second order (quadric) hypersurface separability which in turn reduces model size significantly at the same performance on a high level before even utilizing sparsity/quantization. This approach can be used everywhere as a drop-in for a Linear layer but with substantially reduced size. 

This paradigm is based on my research:
https://www.researchgate.net/publication/221582251_Using_Quadratic_Perceptrons_to_Reduce_Interconnection_Density_in_Multilayer_Neural_Networks

There is also other research about higher order neurons in the field, although later afaik

I have further explained the paradigm in my GitHub repo : https://github.com/diro5t/deep_quadric_learning

In this repo there are further examples of reducing model size in concrete applications  for a singular quadric neuron as well as for quadric layers demonstrated for the MNIST dataset in PyTorch as well as in tinygrad.

The proposed implementation can be seen in my fork https://github.com/diro5t/pytorch in the torch.nn.modules.linear.py.

This feature is also on the PyTorch 2.1 feature list https://docs.google.com/spreadsheets/d/1TzGkWuUMF1yTe88adz1dt2mzbIsZLd3PBasy588VWgk/edit#gid=2032684683

### Alternatives

_No response_

### Additional context

comment regarding this feature:
@[dirk.roeckmann@fivetroop.com](mailto:dirk.roeckmann@fivetroop.com) : Please first create an issue (feature request, here: [https://github.com/pytorch/pytorch/issues/new/choose](https://www.google.com/url?q=https://github.com/pytorch/pytorch/issues/new/choose&sa=D&source=docs&ust=1689635667681400&usg=AOvVaw2iZID1OC247jRrAx4e8vGu)) against pytorch/pytorch.  With this feature description. This issue needs to be accepted by pytorch maintainers in order to be considered.
cc @[albandes@meta.com](mailto:albandes@meta.com) @[nshulga@meta.com](mailto:nshulga@meta.com)

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: angular
Issue: Angular Chrome extension gets disconnected from the page after 30sec of inactivity
Labels: area: devtools

### Is this a bug report or a feature request?

- [X] Bug Report
- [ ] Feature Request

### Please provide the steps to reproduce the issue [Bug Report only]

1. Go to an angular page to use the angular extension on, on Chrome
2. Everything works correctly, hover on the angular tree and see the blue rectangle on the page that highlights the hovered component.
3. Go to a different browser tab (non angular) for 30sec-5min
4. Go back to the angular page and notice that the extension is not working anymore



### Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

I would expect the extension to still be connected when going back to the page.

### Please provide a screenshot if possible [Bug Report only]

When it works:
![Screenshot 2023-07-17 at 3 57 21 PM](https://github.com/angular/angular/assets/6637867/f5ae2f9c-ac61-42e1-9105-842d859ff915)

When it doesn't work:
![Screenshot 2023-07-17 at 4 01 05 PM](https://github.com/angular/angular/assets/6637867/d340d4fe-eeb0-492a-8915-7f978817423b)

My guess is that it's related to Chrome killing the service worker after inactivity on the page. See https://bugs.chromium.org/p/chromium/issues/detail?id=1152255#c185
![Screenshot 2023-07-17 at 4 02 05 PM](https://github.com/angular/angular/assets/6637867/1894c1fd-cf0c-4d20-ad17-85ce942029a6)

### Please provide the exception or error you saw [Bug Report only]

_No response_

### Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]

```true
Only on Chrome.
Chrome: Version 114.0.5735.198 (Official Build) (x86_64)
MACOS: 13.4.1
Angular Devtools: 1.0.7
Angular: 16.1.0-rc.0
```


### Description [Feature Request only]

_No response_

### Proposed solution [Feature Request only]

_No response_

### Alternatives considered [Feature Request only]

_No response_
Repository: deno
Issue: Poor URLPattern performance
Labels: perf

I was looking at the performance of my oak router versus my acorn router. Oak uses pathToRegex while acorn uses `URLPattern`. The implementation of `URLPattern` in Deno is super non-performant compared to pathToRegex and is making any routers that leverage `URLPattern` quite noticeably non-performant against other solutions.

By my calculations, `URLPattern` is ~150x slower than pathToRegex when testing/executing.

To reproduce:

**benchmarks.test.ts**

```ts
import { pathToRegexp } from "https://deno.land/x/path_to_regexp@v6.2.1/index.ts";

const urlPattern = new URLPattern("/", "http://localhost/");

Deno.bench({
  name: "URLPattern",
  fn() {
    if (urlPattern.test("http://localhost/")) {
      true;
    }
  },
});

const regexp = pathToRegexp("/");

Deno.bench({
  name: "pathToRegexp",
  fn() {
    if (regexp.test("/")) {
      true;
    }
  },
});
```

And then:

```
❯ deno bench benchmarks.test.ts
cpu: Apple M1 Pro
runtime: deno 1.35.1 (aarch64-apple-darwin)

file:///Users/kitsonk/github/acorn/benchmarks.test.ts
benchmark         time (avg)             (min … max)       p75       p99      p995
---------------------------------------------------- -----------------------------
URLPattern         2.33 µs/iter     (2.23 µs … 2.93 µs)   2.38 µs   2.93 µs   2.93 µs
pathToRegexp      14.23 ns/iter   (14.01 ns … 26.11 ns)   14.3 ns  16.23 ns  17.06 ns
```
Repository: pytorch
Issue: Need support and testing for Adam optimizer for MPS
Labels: module: optimizer,triaged,enhancement,module: mps

### 🚀 The feature, motivation and pitch

Environment of Mac M2
```
Python3.10
torch              2.1.0.dev20230717
torchaudio         2.1.0.dev20230717
torchvision        0.15.2a0
```

I want to use the Adam optimizer to train my model. And got an error:
```
NotImplementedError: The operator 'aten::lerp.Scalar_out' is not currently implemented for the MPS device. If you want this op to be added in priority during the prototype phase of this feature, please comment on https://github.com/pytorch/pytorch/issues/77764. As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op. WARNING: this will be slower than running natively on MPS
```
And when I set the `PYTORCH_ENABLE_MPS_FALLBACK=1`, the training speed is quite slower.

I'm testing the [tiny VIT model](https://github.com/UdbhavPrasad072300/Transformer-Implementations/blob/main/transformer_package/models/transformer.py#L406) with minist dataset.

The details is following:
M2 chip takes about **2.4 minutes** on CPU with Adam for one epoch.
M2 chip takes about **2.0 minutes** on GPU with Adam for one epoch( with `PYTORCH_ENABLE_MPS_FALLBACK=1`).
M2 chip takes about **30 seconds** on GPU with SGD for one epoch.


### Alternatives

_No response_

### Additional context

_No response_

cc @vincentqb @jbschlosser @albanD @janeyx99 @crcrpar @kulinseth @malfet @DenisVieriu97 @razarmehr @abhudev @ezyang @gchanan @zou3519
Repository: vscode
Issue: Support update download progress
Labels: feature-request,install-update

Type: <b>Feature Request</b>

Why is there no means of telling how big of a download there is for Visual Studio Code besides the cryptic "Downloading Update" (from the cogwheel left-click) OK, but for how long and how much space is it downloading? What is the mystery here? Did you guys forget to give us a progress bar at all? What if we are in a very slow internet connection area and we can not tell how long to be there to finish the download? Not everyone has a Speedy Gonzalez internet connectivity ya know! Hello?

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.22623
Modes:


<!-- generated by issue reporter -->
Repository: godot
Issue: 3D OpenGL rendering (Compatibility) is completely black --works normally in 2D
Labels: bug,platform:windows,topic:rendering,regression,topic:3d

### Godot version

v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - AMD Radeon HD 7480D () - AMD A4-5300B APU with Radeon(tm) HD Graphics (2 Threads)

### Issue description

When creating a new project, the 3D rendering is completely black, and when moving/looking around, some strange things appear as shown in the following images.
![image](https://github.com/godotengine/godot/assets/125154466/de62d8b6-9204-4831-b27d-8de1094b67c9)
![image](https://github.com/godotengine/godot/assets/125154466/679ec7a7-d426-4ba6-b54b-0ed13d7823b4)

When restarting the engine, the problem is partially resolved. The background/environment appears correctly, but the 3D objects cannot be seen as shown in the following image.
![image](https://github.com/godotengine/godot/assets/125154466/7fee49e1-98cc-43e3-b5cb-a9b1fbae9eaf)


I can confidently say that the problem is not from my device because it was working normally in  v4.0.3.

### Steps to reproduce

Just create a new project and in the renderer option, choose Compatibility (not sure if the problem exists for other people.)



### Minimal reproduction project

N/A
Repository: deno
Issue: Deno panics when passing invalid type to Deno.Kv.prototype.delete
Labels: ext/kv

Encountered while using the KV api in the devtools inspector attached to a fresh server. 

Ran the following code:
```
> const kv = await Deno.openKv()
> for await (const n of await kv.list({ prefix: ["data"] }) ) { kv.delete(n.value.id) }
< Promise {<rejected>: TypeError: Error parsing args at position 3: serde_v8 error: invalid type; expected: array, got: st…}
```
On the server:
```
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.35.0
Args: ["/Users/zach/.deno/bin/deno", "run", "--inspect", "-A", "--unstable", "dev.ts"]

thread '<unnamed>' panicked at 'all branches are disabled and there is no else branch', runtime/inspector_server.rs:326:5
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: deno_runtime::inspector_server::handle_ws_request::{{closure}}
   3: tokio::runtime::task::raw::poll
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
```
Repository: tensorflow
Issue: Question about tensorflow <2.11 and protobuf compatibility
Labels: stat:awaiting tensorflower,type:build/install,subtype:windows,TF 2.10

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

binary

### TensorFlow version

2.10.1

### Custom code

No

### OS platform and distribution

Windows 10

### Mobile device

N/A

### Python version

3.8

### Bazel version

N/A

### GCC/compiler version

N/A

### CUDA/cuDNN version

N/A

### GPU model and memory

N/A

### Current behavior?

I'd like to do some work with tensorflow on native Windows with GPU support, so I've installed tensorflow 2.10.1 via pip.  According to the [setup.py](https://github.com/tensorflow/tensorflow/blob/v2.10.1/tensorflow/tools/pip_package/setup.py) for that version, the protobuf dependency is `protobuf >= 3.9.2, < 3.20`.  However, I'm mostly using conda/mamba to handle my package management, and having protobuf limited to <3.20 is limiting my options on a number of other packages, particularly with regard to the upcoming EOL of openssl 1.1.1, so I decided to look into this a bit further.

The comment above this dependency says `Protobuf 3.20 results in linker errors on Windows`.  Is this supposed to be the error described in #53234?  Based on the discussion in this issue, that appears to be the case.  However, if so, I'm not sure why the upper pin of protobuf <3.20 would have been added, as the initial issue described in #53234 appears to have been an attempt to upgrade protobuf to **3.19.0**, not **3.20**.  I tried installing all protobuf v3.20.x versions on top of my tensorflow v2.10.1 install, and I was at least able to import tensorflow, although I realize that this might not be the situation that causes corruption, if that does happen with these versions.

Also, in the comment above this dependency, it states `Protobuf 4.0 is binary incompatible with what C++ TF uses.`  I verified that I would get an error message when I installed any protobuf v4 package via pip after installing tensorflow.  However, if I installed tensorflow (including protobuf 3.19.6) via pip, but then installed protobuf 4.23.3 via conda, I was able to import tensorflow without getting any error.  Do you have any idea why this might be?  I verified that protobuf was reporting as version 4.23.3 in my python interpreter in this situation.

Finally, I have tried contacting several conda-forge package maintainer about the possibility of building some additional packages with support for protobuf <3.20, but I have generally not found people wanting to add that support in.

### Standalone code to reproduce the issue

```shell
N/A
```


### Relevant log output

```shell
N/A
```
Repository: pytorch
Issue: Silent Error of torch.fx.symbolic_trace when forward hooks are registered
Labels: triaged,module: fx

### 🐛 Describe the bug

When there are some forward hooks in the module, the `torch.fx.symbolic_trace` silently ignores the computation.

```python
from torch.nn.utils import spectral_norm
from torch import fx
from torch import nn
m = spectral_norm(nn.Linear(20, 40))
m.weight.data.zero_()
m.weight.data += 500

import torch
input = torch.ones(32, 20)
fx_model = torch.fx.symbolic_trace(m)

output1 = m(input)
output2 = fx_model(input)
print((output1 - output2).abs().max().item()) # 9999.2939453125
```

This is because the `torch.fx.symbolic_trace` ignores the forward hooks, as discussed in https://github.com/pytorch/vision/issues/5193 .

However, we should at least report some errors/warning in such a case.

The fix is simple: just raise errors/warnings when hooks are deteced.

### Versions

It affects `torch.fx` in all versions.

cc @ezyang @SherlockNoMad @EikanWang @jgong5 @wenzhe-nrv
Repository: opencv
Issue: (Build opencv 4.4.0)fatal error: opencv2/hdf/hdf5.hpp: No such file or directory
Labels: bug,question (invalid tracker)

### System Information

opencv: 4.4.0
os: win11
compiler: gcc 8.1.0

### Detailed description

When I build opencv-4.4.0 by mingw32, the Windows Powershell would caution this error. 
Actually, I can't find this file ```hdf5.hpp``` in opencv-4.4.0. I find it in opencv-contrib-4.4.0, so I copy it to opencv-4.4.0 directory. It is useless.
What should I do to build upto 100% in this case ?
```
[100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.obj
In file included from D:\opencv\source\opencv-4.4.0\modules\python\src2\cv2.cpp:38:
D:/opencv/build/modules/python_bindings_generator/pyopencv_generated_include.h:16:10: fatal error: opencv2/hdf/hdf5.hpp: No such file or directory
 #include "opencv2/hdf/hdf5.hpp"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
mingw32-make[2]: *** [modules\python3\CMakeFiles\opencv_python3.dir\build.make:76: modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.obj] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2271: modules/python3/CMakeFiles/opencv_python3.dir/all] Error 2
mingw32-make: *** [Makefile:165: all] Error 2
```

### Steps to reproduce

The build command is ```mingw32-make.exe```.

### Issue submission checklist

- [X] I report the issue, it's not a question
- [ ] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: pytorch
Issue: Will nn.unfold support non-4D-tensor input in future version?
Labels: module: nn,triaged,enhancement,actionable

### 🚀 The feature, motivation and pitch

For pretty many versions there is the warning "Currently, only 4-D input tensors (batched image-like tensors) are supported". Such program can be frequently used but nonnative implementation is slow. Perhaps you may consider to add the support for "arbitrary spatial dimensions" as the docs said in the ongoing version? Thanks!

### Alternatives

_No response_

### Additional context

_No response_

cc @albanD @mruberry @jbschlosser @walterddr @mikaylagawarecki
Repository: vscode
Issue: Inconsistent naming for WSL projects in right-click taskbar menu
Labels: bug,workbench-history

Type: <b>Bug</b>
How to reproduce:

- open folders on WSL + windows
- right click on task bar
- some entries have the [WSL] marker, some other (WSL projects) don't:

![image](https://github.com/microsoft/vscode/assets/19611050/e381aabc-a253-4946-93d9-031f564e5daf)

example: see "bdm" entry (duplicated with pinned btw...) is a WSL project but doesn't show the same [WSL] marker.

VS Code version: Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771, 2023-07-12T17:22:07.651Z)
OS version: Windows_NT x64 10.0.19045
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|12th Gen Intel(R) Core(TM) i5-1245U (12 x 2496)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|15.69GB (2.32GB free)|
|Process Argv|--folder-uri file:///c%3A/Users/w103404/OneDrive%20-xxxxxxx/Documents/purview --crash-reporter-id 8d7a401e-7e97-485f-83f1-3bb947208d28|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (18)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-openapi|42C|4.18.5
swagger-viewer|Arj|3.1.2
erdiagram|BIG|0.4.0
sqltools-databricks-driver|dat|0.4.1
vuerd-vscode|din|0.9.15
prettier-vscode|esb|9.19.0
isort|ms-|2023.10.1
python|ms-|2023.12.0
vscode-pylance|ms-|2023.7.20
jupyter|ms-|2023.6.1101941928
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.17
vscode-jupyter-cell-tags|ms-|0.1.8
vscode-jupyter-slideshow|ms-|0.1.5
remote-wsl|ms-|0.80.2
sqltools|mtx|0.28.0
vscode-yaml|red|1.13.0
avro|str|0.5.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30792226
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
282f8724:30602487
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
03d35959:30757346
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
hideindicator:30785051
pythongtdpath:30769146
bgfeh915:30780428
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnocebcf:30776496
h7j2d465:30786200
dsvsc013:30789517

```

</details>

<!-- generated by issue reporter -->
Repository: stable-diffusion-webui
Issue: [Bug]: AttributeError: __config__
Labels: asking-for-help-with-local-system-issues

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Traceback (most recent call last):
  File "/0718/stable-diffusion-webui/launch.py", line 38, in <module>
    main()
  File "/0718/stable-diffusion-webui/launch.py", line 34, in main
    start()
  File "/0718/stable-diffusion-webui/modules/launch_utils.py", line 344, in start
    webui.webui()
  File "/0718/stable-diffusion-webui/webui.py", line 382, in webui
    shared.demo = modules.ui.create_ui()
  File "/0718/stable-diffusion-webui/modules/ui.py", line 505, in create_ui
    modules.scripts.scripts_txt2img.setup_ui_for_section(category)
  File "/0718/stable-diffusion-webui/modules/scripts.py", line 388, in setup_ui_for_section
    self.create_script_ui(script)
  File "/0718/stable-diffusion-webui/modules/scripts.py", line 338, in create_script_ui
    import modules.api.models as api_models
  File "/0718/stable-diffusion-webui/modules/api/models.py", line 111, in <module>
    ).generate_model()
  File "/0718/stable-diffusion-webui/modules/api/models.py", line 96, in generate_model
    DynamicModel.__config__.allow_population_by_field_name = True
  File "/envs/stable/lib/python3.10/site-packages/pydantic/_internal/_model_construction.py", line 204, in __getattr__
    raise AttributeError(item)
AttributeError: __config__

### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...
COMMANDLINE_ARGS="--listen --disable-safe-unpickle --skip-torch-cuda-test --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access" REQS_FILE="requirements.txt" python launch.py

### What should have happened?

no bug

### Version or Commit where the problem happens

f865d3e11647dfd6c7b2cdf90dde24680e58acd8

### What Python version are you running on ?

None

### What platforms do you use to access the UI ?

_No response_

### What device are you running WebUI on?

_No response_

### Cross attention optimization

Automatic

### What browsers do you use to access the UI ?

_No response_

### Command Line Arguments

```Shell
COMMANDLINE_ARGS="--listen --disable-safe-unpickle --skip-torch-cuda-test --no-half-vae --xformers --reinstall-xformers --enable-insecure-extension-access" REQS_FILE="requirements.txt" python launch.py
```


### List of extensions

No

### Console logs

```Shell
as the up
```


### Additional information

_No response_
Repository: deno
Issue: node compatibility issue with libp2p
Labels: bug,node compat

```js
import { createLibp2p } from "npm:libp2p";
import { tcp } from "npm:@libp2p/tcp";

const node = await createLibp2p({
  transports: [tcp()],
});
```

```
error: Uncaught SyntaxError: The requested module 'jsbn' does not provide an export named 'BigInteger'
    at <anonymous> (file:///home/uri/.cache/deno/npm/registry.npmjs.org/@achingbrain/ip-address/8.1.0/dist/esm/lib/ipv4.js:5:10)
```