sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: loading large model not finished after 16 hours
Labels: module: performance,module: serialization,triaged

## 🐛 Bug

posted here [->](https://github.com/PyTorchLightning/pytorch-lightning/issues/9928)
 

After saving a checkpoint of a large pytorch_forecasting model (10'100 targets forecasting based on previous 10'000 values ), loading the checkpoint lasts forever (i killed loading after 16 hours).

With 5 targets forecasting based on previous 5 values -> works
With 50 targets forecasting based on previous 50 values -> works
With 500 targets forecasting based on previous 500 values -> works
With 5000 targets forecasting based on previous 5000 values -> in test

Atm. trying to find the amount where it stops working.

To Reproduce
The model hast 10'100 target values, the prediction is 24 time intervals based on 48 past time intervals.
The predictions are quantiles(0.25,0.5,0.75)

Expected behavior
the model can be loaded in a reasonable timeframe.

Environment
PyTorch 1.4.9
PyTorch 1.9.1
Python version: 3.8.10
OS (e.g., Linux): Ubuntu 20.04
CUDA/cuDNN version: -
GPU models and configuration: -
How you installed PyTorch (conda, pip, source): pip
Additional context
Loading and saving of small models works well.


## Tests
Model is a temporal fusion transformer

2 targets from 2 columns :
torch.load -> 0.032s
setting state_dict -> 0.0006s
state_dict load -> 0.017
tft.load_from_checkoint -> 0.076s

10 targets from10 columns:
torch.load -> 0.08s
setting state_dict -> 0.00119s
state_dict load -> 0.068
tft.load_from_checkoint -> 0.195s

100 targets from 100 columns:
torch.load -> 0.61s
setting state_dict -> 0.0095s
state_dict load -> 3.015
tft.load_from_checkoint -> 3.74s

1000 targets from 1000 columns:
torch.load -> 6.4s
setting state_dict -> 0.122s
state_dict load -> 352.154
tft.load_from_checkoint -> 351.1s

2000 targets from 2000 columns:
torch.load -> 12.3s
setting state_dict -> 0.25s
state_dict load -> ----
tft.load_from_checkoint -> -----

3000 targets from 3000 columns:
torch.load -> 16.7s
setting state_dict -> 0.39s
state_dict load -> ----
tft.load_from_checkoint -> -----

2 targets from 10100 columns:
torch.load -> 17.12s
setting state_dict -> 0.415s
tft.load_from_checkoint -> -----

where setting state_dict :
-->>tft.state_dict = ckpnt['state_dict']

where state_dict load :
-->>tft.load_state_dict(ckpnt['state_dict'])


The 2 targets from 2 columns already has 292 keys in the state_dict.
The 10 targets from 10 columns has 668 keys in the state_dict.
The 100 targets from 100 columns has 4898 keys in the state_dict.
The 1000 targets from 1000 columns has 47198 keys in the state_dict.


After a lot of checks, it seems like the load_state_dict function is quadratically slowing down what makes big models, like I have to use, unusable with pytorch.

Is there a way around or can this be fixed?




cc @VitalyFedyunin @ngimel @mruberry
Repository: material-ui
Issue: [Select] Add virtualization support
Labels: new feature,performance,component: select

Material UI Select component is lagging when having more than 200 options. I try to work around it using `react-virtual` npm. this should solve the issue because it follows the Select rule of children can be MenuItem Only, since it provides a hook and not a wrapping component, like in `react-window`.
<!--
  Thank you very much for contributing to MUI by creating an issue! ❤️
  To avoid duplicate issues we ask you to check off the following list.
-->

## Current Behavior 😯

The overflowen options are not rendered when scrolled to them.
<!-- Describe what happens instead of the expected behavior. -->

## Expected Behavior 🤔

<!-- Describe what should happen. -->
It should render the other options, based on the view location.
## Steps to Reproduce 🕹
https://codesandbox.io/s/lucid-ritchie-j2c13?file=/src/Demo.tsx
<!--
  Provide a link to a live example (you can use codesandbox.io) and an unambiguous set of steps to reproduce this bug.
  Include code to reproduce, if relevant (which it most likely is).

  You should use the official codesandbox template as a starting point: https://mui.com/r/issue-template-next

  If you have an issue concerning TypeScript please start from this TypeScript playground: https://mui.com/r/ts-issue-template

  Issues without some form of live example have a longer response time.
-->

Steps:

1. Open the select by clicking it.
2. scroll to the bottom.

## Context 🔦

My app has dropdowns with over 2000 options in it. If the select is lagging, I can't use it.
https://github.com/mui/material-ui/issues/17001

## Your Environment 🌎

<!--
  Run `npx @mui/envinfo` and post the results.
  If you encounter issues with TypeScript please include the used tsconfig.
-->
<details>
  <summary>`npx @mui/envinfo`</summary>
    System:
    OS: macOS 11.6
  Binaries:
    Node: 14.17.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.13 - /usr/local/bin/npm
  Browsers:
    Chrome: 94.0.4606.81
    Edge: Not Found
    Firefox: Not Found
    Safari: 15.0
  npmPackages:
    @emotion/styled:  10.0.27 
    @types/react: ^17.0.0 => 17.0.1 
    react: ^17.0.1 => 17.0.1 
    react-dom: ^17.0.1 => 17.0.1 
    styled-components: ^5.2.1 => 5.2.1 
    typescript: ^4.1.3 => 4.1.3 ```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```
</details>
Repository: godot
Issue: [Find in Files] Deleting the search target doesnt update the found list
Labels: topic:editor,usability

### Godot version

3.4 beta 6

### System information

manjaro 21, AMD Radeon r7 200 series, Vulkan, 8GB Memory

### Issue description

What happens:

When you search for like a print statement, if you delete it, the list doesnt update, even clicking on "Refresh"

https://user-images.githubusercontent.com/58845030/137717468-cc551800-2a4e-4a55-8634-8f387b332703.mp4

Expected Behaviour:

When you delete the found statement, the list auto refresh


### Steps to reproduce

* Create some scripts with print statements
* Click Search -> Find in Files
* search for "print"
* delete one of them in the script
* click refresh
* it should not work

### Minimal reproduction project

N/a
Repository: PowerToys
Issue: Program starts on the monitor it is opened from
Labels: Idea-Enhancement,Product-Window Manager

### Description of the new feature / enhancement

This is somewhat similar to already existing experimental feature i.e. FancyZones > Windows > Window behavior > "Move newly created windows to the current active monitor (Experimental)". The main difference would be that instead of opening windows on currently active monitor based on mouse cursor, the new windows would start on the monitor that they were opened from.

### Scenario when this would be used?

I have multiple monitors connected to my laptop. Some of the applications I use e.g. VS19 or other IDEs or apps require longer time to start up. This feature would allow me to launch 1 or more apps on one monitor and while I'm waiting I could work on another monitors (potentially also in different W10 desktops). After the apps are started I could then come back to the first monitor and continue my work there.

### Supporting information

KDE neon offers similar functionality and I find it very useful.
Repository: angular
Issue: (core/testing) flush() not working when requestAnimationFrame contexts
Labels: area: testing,area: zones,P3

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

The `requestAnimationFrame` is one of the same macrotasks as `setTimeout`, but it is not drained by the `flush()` function.

![20211018211946](https://user-images.githubusercontent.com/6778957/137731833-8d87c47b-6e60-4b59-b236-ce8d40453c1c.png)



### Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/node-qvczbt?file=src/app/app.component.spec.ts

### Please provide the exception or error you saw

```true
Chrome 94.0.4606.81 (Linux x86_64) AppComponent should increased number after drawn FAILED
```


### Please provide the environment you discovered this bug in

```true
❯ ng version

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 12.2.10
Node: 14.16.0
Package Manager: npm 7.17.0
OS: linux x64

Angular: 12.2.10
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.10
@angular-devkit/build-angular   12.2.10
@angular-devkit/core            12.2.10
@angular-devkit/schematics      12.2.10
@schematics/angular             12.2.10
rxjs                            6.6.7
typescript                      4.3.5
    

~/projects/node-qvczbt
```

from stackblitz WebContainer.


### Anything else?

Work `tick(16)`, but `flush()` should also work.

#### related
- https://github.com/angular/angular/issues/12372
- [javascript - What are options to unit test requestAnimationFrame in Angular? - Stack Overflow](https://stackoverflow.com/questions/50278730/)
Repository: go
Issue: x/text/cmd/gotext: update command too slow
Labels: Performance,NeedsInvestigation

<!--
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.16 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="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/go/src/github.com/open-horizon/anax/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build538988283=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?
Ran the following command:
$GOPATH/bin/gotext -srclang=en update -out=i18n_messages/catalog.go -lang=en,zh_CN,zh_TW,fr,de,it,ja,pt_BR,es,ko 2>&1
It took between 30 to 40 minutes on my vm that has 8G memory, 2.1GH dual CPU and 100G disk space.
There are about 2000 messages need to be translated in the code. 9 languages + english. 
Here is our repo: https://github.com/open-horizon/anax
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->



### What did you expect to see?
We expect this should be finished within a few minutes. 


### What did you see instead?
It takes  30 to 40 minutes.
Repository: pytorch
Issue: jit tracer：Lost imported pre-model parameters
Labels: oncall: jit

If there is a pre-trained model trained by others in the network, such as resnet50, How to convert the trained model to be traced？
RuntimeError: Error(s) in loading state_dict for net:
Missing key(s) in state_dict:
Unexpected key(s) in state_dict:
Repository: node
Issue: Repl Crashes in infinite Async recursion
Labels: confirmed-bug,repl,linux

### Version

v16.1.0

### Platform

Linux linx-PC 5.8.0-63-generic #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

### Subsystem

Repl

### What steps will reproduce the bug?

1. Open node repl
2. Type `(async (a)=>a(a))(async (a)=>a(a))` but don't press return
3. Crash

### How often does it reproduce? Is there a required condition?

100% of the time.

### What is the expected behavior?

The repl should not crash.

### What do you see instead?

```
RangeError: Maximum call stack size exceeded
    at <anonymous>:1:19
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
    at <anonymous>:1:30
```

### Additional information

Typing `(a=>a(a))(a=>a(a))` doesn't crash and only prints the error after you press enter.
Repository: flutter
Issue: ResizeImage reduces image quality and makes it blurry
Labels: framework,a: quality,a: images,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,team-framework,triaged-framework

I have recently added ResizeImage to my application to optimize performance of the app but it not only reduces the quality of the images but it makes them blurry too. Can anyone explain to me how to avoid that but still have that optimization?

For example here is one place where i used it on asset image: 
```
 ` AspectRatio(
                      aspectRatio: 4 / 3,
                      child: ClipRRect(
                        borderRadius: languages.direction == 'rtl'
                            ? BorderRadius.only(topRight: Radius.circular(7), bottomRight: Radius.circular(7))
                            : BorderRadius.only(topLeft: Radius.circular(7), bottomLeft: Radius.circular(7)),
                        clipBehavior: Clip.hardEdge,
                        child: Image(image: ResizeImage(AssetImage('assets/images/noimage.jpg'), width: 133),fit: BoxFit.cover),
                      ),`
```
Repository: TypeScript
Issue: Incorrect assignability check when using Extract (TS2322)
Labels: Bug

# Bug Report

### 🔎 Search Terms

extract assignable TS2322

### 🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about Generics, Assignability, and Extract.

Tested with 4.2.3, 4.3.5, 4.4.4, and 4.5.0-dev.20211018.

In 4.1.5, the example using a type alias also fails. Version 4.2 introduced [Smarter Type Alias Preservation](https://devblogs.microsoft.com/typescript/announcing-typescript-4-2-beta/#smarter-type-alias-preservation), which may explain why that example passes starting from 4.2.x.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.4.4#code/C4TwDgpgBAggPAFQHxQLxQN4Cgq6gNwEMAbALigFEAPYAJ0IGNg4A7AVwFsAjCWqAHygBnOgEsWAcwA0UZAG4sAXwWhIsAPrtuvNLFacetJAqwAzNiyaiA9iyimAjAAoq5GJoO8AlG-3bagiK04hIo2HhQAPSRUAAKhEJCEEJQqtAMABYQDADWIQB0OHi0EMBstHZUCopYZhZWtvYATC6+WoZIPnrtOoFikmFFuNFQAGKEosQpaVCZ2XmSUADuosAZULy01nwIAMpNAMxNTaRDUTEI4NAA5PA9RtdQoiks1sBQCUKiEiyEXMTQYDWVJXKC3OBBEICKD3JDXQoREa4S5qa6QxaCe6PZ4wt4fRLfX7-QHAmbXLEIvBIvAom7oiTYl54z6Ev4A1Kk0Hkzy0eFnEplCpQKpKLBAA)

### 💻 Code

I have attempted to minimize this example as much as possible. The use of `Extract` to define a field type appears to be significant.

```ts
type A<T> = {
    val: Extract<number | string, T>;
};
type A_number = A<number>;

function f1(x: A_number): A<number| string> {
    // Passes type checking.
    return x;
}

function f2(x: A<number>): A<number | string> {
    // Fails type checking with error TS2322:
    // Type 'A<number>' is not assignable to type 'A<string | number>'.
    //   Type 'string | number' is not assignable to type 'number'.
    //     Type 'string' is not assignable to type 'number'.
    return x;
}
```

### 🙁 Actual behavior

The type checker reports error TS2322: `A<number>` is not assignable to type `A<string | number>` because `string | number` is not assignable to `number`. It appears to be checking assignability of a field in the wrong direction, because the assignability check should be whether `number` is assignable to `string | number`.

Using a type alias for `A<number>` does not produce the same error. I was also not able to reproduce this error without using `Extract` to define a field type.

### 🙂 Expected behavior

The type `A<number>` should be assignable to type `A<string | number>` because it is a simple object type and `number` is assignable to `string | number`.
Repository: flutter
Issue: Add test that exercises flutter create + flutter run on a given API level
Labels: a: tests,platform-android,P2,team-android,triaged-android

Based on https://github.com/flutter/flutter/issues/91936, it seems like we don't have a test that does exactly this.
Repository: godot
Issue: animation not being applied before render
Labels: topic:animation

### Godot version

v3.3.4.stable.official [faf3f883d]

### System information

GeForce 750ti

### Issue description

So I've got a beginning animation that goes from 0 to 1 on the x axis, then I set the parent translation.x to 2 at the same time the child goes from -1 to 0. the 2 of its parent and its -1 should cancel out to get 1 but as you can see it gets set to 3 briefly because the end of the previous animation is still being applied when as far as I can tell it shouldn't be especially considering if you look at the print readouts of the global_transform.origin.x it doesn't show it ever goes to 3. 

![animationbug](https://user-images.githubusercontent.com/53994293/137780238-84f4cc11-d95a-49b6-b05b-9b05663e8053.gif)

While I've got some confidence its doing the loop in the order as it is currently defined, I'm questioning the principle of why this is the order. I'd like it to do what it shows in the print outs. It seems misleading that its not.

### Steps to reproduce

just hit play on the project. 
I've got 2 methods of making it jump to 2. Just set method = 1 up top if you want to test the other one out. I've also got a bunch of stuff you can print if you uncomment it. Line 40 is of particular interest:
```#anim.seek(0, true) this fixes it but it doesn't seem like it should be necessary```
 You can set ran = 0 if you want to see how it is supposed to look, or uncomment line line 32 if you want to contrast them. 

### Minimal reproduction project

[animation bug.zip](https://github.com/godotengine/godot/files/7367472/animation.bug.zip)
Repository: pytorch
Issue: Missing doc for `torch.segment_reduce`
Labels: module: docs,triaged,module: numpy

## 📚 Documentation

This op is exposed to Python but no proper documentation.

C++ frontend doc is shown at https://pytorch.org/cppdocs/api/function_namespaceat_1a6e5806b3b29a41bdfdb2035773f58c36.html?highlight=segment_reduce

cc @brianjo @mruberry @rgommers
Repository: go
Issue: x/sync/singleflight: add ability to inspect key status, i.e. is already in-flight
Labels: NeedsInvestigation,FeatureRequest

I would like to see if a key is already in-flight, i.e. a way to probe that it is already processing.
Repository: pytorch
Issue: Use `__slots__` for the `nn.Module` class
Labels: module: performance,module: nn,good first issue,triaged,better-engineering,actionable

On paper, using slots might bring improvements in terms of memory and speed for nn.Modules as we have many attributes on that class.

We should investigate if we can do this in a BC way and if so, if there are any visible benefits.

cc @mruberry @jbschlosser @walterddr @mikaylagawarecki @VitalyFedyunin @ngimel @albanD
Repository: flutter
Issue: [Proposal] Add expanded state in Semantics widget
Labels: c: new feature,framework,a: accessibility,c: proposal,P2,team-framework,triaged-framework

## Use case

I cannot set expanded or collapsed states for screen readers. This accessibility issue is WCAG's conformance level A, Criterion 4.1.2: Name, Role, Value
WCAG: https://www.w3.org/WAI/WCAG21/Understanding/name-role-value

I would like the `Semantics` widget to have an `expanded` parameter so that it announces the state for VoiceOver and TalkBack.

After creating this parameter in `Semantics`, I recommend putting it in the `Material's Accordion` and similar components.

## Proposal

Analyze the behavior of the `accessibilityState={{expanded: true}}` parameter of React Native and do the same.

https://github.com/facebook/react-native/search?q=expanded


## Extra

W3C Documentation about HTML's aria-expanded: https://www.w3.org/WAI/GL/wiki/Using_aria-expanded_to_indicate_the_state_of_a_collapsible_element

React Native documentation about accessibilityState: https://reactnative.dev/docs/accessibility#accessibilitystate

Example of accordion accessible in react material design: https://mui.com/pt/components/accordion/
Repository: flutter
Issue: More clearly document the asynchronous nature of WidgetApp's localizationDelegates
Labels: a: tests,framework,f: material design,a: internationalization,d: api docs,customer: google,P2,team-design,triaged-design

Apps with localizationDelegates need to be tested in widget tests with asynchronicity accounted for (unlike a simple pumpWidget for an untranslated WidgetsApp). We somewhat allude to it in https://flutter.dev/docs/development/accessibility-and-localization/internationalization#loading-and-retrieving-localized-values but it's not clearly stated in the API doc https://api.flutter.dev/flutter/material/MaterialApp/localizationsDelegates.html. 

We should be clearer so users writing tests don't fall into easily avoided holes.
Repository: godot
Issue: FileDialog's current file name disappears when choosing favorite locations
Labels: topic:gui

### Godot version

3.3.2.stable

### System information

Ubuntu

### Issue description

`FileDialog`'s `LineEdit` which shows the current file name, looses its content the moment you select something from the "favorite locations" list on the top-right.

This is bad especially for when you set the property `current_file` via code to suggest to the user that he could give that particular name. By browsing, the user will loose that name.

### Steps to reproduce

* Open any `FileDialog` with file system access, or start the example project.
* Select some file (one click) to change the `LineEdit` (the example project already has the `LineEdit` set to something).
* Select something from the favorite locations.

### Minimal reproduction project

[FileDialogBug.zip](https://github.com/godotengine/godot/files/7368992/FileDialogBug.zip)