sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Einsum Optimization Tracker
Labels: module: performance,triaged,module: linear algebra

There are many things one can do to improve einsum (in terms of perf and usability!) so this issue seeks to track them all. 

## The Multi-Contractions Case
As of torch 1.13, `torch.einsum` automatically uses opt-einsum to optimize the contraction path for when there are 3+ tensors to contract and opt-einsum is installed. As of now, section 1 of https://github.com/pytorch/pytorch/issues/60295 has been completed. 
Tasks remaining include to:
- [ ] Achieve numpy compatibility by adding optimize as an torch.einsum API kwarg (our previous attempt was blocked by failing JIT tracing https://github.com/pytorch/pytorch/pull/85908)
- [ ] [P0] Submit a fix to https://github.com/dgasmith/opt_einsum to set `torch.backends.opt_einsum.enabled = False` to avoid recomputing the path when opt_einsum calls torch.einsum as a backend. https://github.com/dgasmith/opt_einsum/pull/205
- [ ] Test out cuQuantum perf as an opt_einsum replacement
- [ ] Add path computation caching by equation + op size

## The Single Contraction Case
The path to faster single contractions includes:
- [ ] Benchmarking einsum with torch.inductor, experimenting with replacing bmm with mul -> sum for discontiguous tensors.
- [ ] Testing out cuTensor perf (to see if there are significant improvements since Yaroslav's last benchmarks in #57121.)

## Additional Context
See previous relevant issues https://github.com/pytorch/pytorch/issues/60295 and https://github.com/pytorch/pytorch/issues/57121 for context.

cc @VitalyFedyunin @ngimel @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Repository: PowerToys
Issue: Adding keybinds to powertoys run
Labels: Idea-Enhancement,Needs-Triage

### Description of the new feature / enhancement

Just like the title says, Adding keybinds to powertoys run would be great, It would be good when you're trying to not switch between the main keyboard and the arrow keys too much, So keybinds like next app, previous app, next option (Action like running as admin), previous option

### Scenario when this would be used?

This is actually what I want to do with it, But for vim users, You could do Control + j/k to navigate between apps, And Control + h/l to navigate between options, Or maybe something like Control + i as enter, I just think it would be really good for speed and comfort

### Supporting information

_No response_
Repository: pytorch
Issue: link error happen when intergrate libtorch to other tool
Labels: module: build,module: cpp,triaged

Hi, author. I recently try to integrate libtorch to a symbolic execution tool [klee](https://github.com/klee/klee), but always fail to linke libtorch in the last stage.

The part of CMakeList is

```text
set(Torch_DIR ${LIB_TORCH_ROOT}/share/cmake/Torch)
find_package(Torch REQUIRED)

if (Torch_FOUND)
    message(STATUS "Torch library found!")
    message(STATUS "include path: ${TORCH_INCLUDE_DIRS}")
    message(STATUS "libraries path: ${TORCH_LIBRARIES}")
else ()
    message(FATAL_ERROR "Could not locate Torch" \n)
endif()

xxxx

target_link_libraries(KleeCore "${TORCH_LIBRARIES}")
``` 

This could work when I write a simple libtool, but fail to link intergrating it to klee.

I print the value of `${TORCH_LIBRARIES}$`, and found the value is `torch;torch_library;<path2libtorch>/lib/libc10.so`, is this correct?  I also notice there is a variable `${TORCH_LIBRARY}` in `TorchConfig.cmake`, is that variable useful for cmake? How could I fix this error?

cc @malfet @seemethere @jbschlosser
Repository: vscode
Issue: Adopt `diffIdentityProvider` for search results
Labels: search,polish,perf

Breaking adoption of `diffIdentityProvider` into its own issue from here #127621. Tried implementing it in #163903, but there were minimal improvements. Any rendering improvements seemed to be counter-balanced with long splicing times.

Created this issue to look more into long splicing times.
Repository: vscode
Issue: Search & Replace exclude deleted files by default
Labels: bug,search,confirmed

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

**Problem**:

- Branch A has a file F that is not in branch B
- Switch from B to A with F open in an editor
- F is marked as 'deleted' by VS Code, and is in neither tracked or untracked files
- Perform a Search & Replace that matches text in F
- VS Code includes F in the list of matches
- Replacing all and saving (a 2-click action) saves F and adds it to untracked files

This means you can easily accidentally add F to branch B if you're not paying attention

**Solution**:

Search & Replace should exclude deleted files by default, so they do not appear in the list of matches
Repository: rust
Issue: Compiler suggests to add [closure@…] to source code when it can be inferred instead.
Labels: A-diagnostics,A-closures,T-compiler,C-bug,A-suggestion-diagnostics,D-invalid-suggestion,S-bug-has-test

Unminimized example:

```
error[E0283]: type annotations needed
   --> crates/websocat-ioless/src/lib.rs:346:27
    |
346 |                 let w = w.sink_map_err(|e : std::io::Error |e.into());
    |                           ^^^^^^^^^^^^
    |
    = note: multiple `impl`s satisfying `BytesCodec: Encoder<_>` found in the `tokio_util` crate:
            - impl Encoder<BytesMut> for BytesCodec;
            - impl Encoder<websocat_api::bytes::Bytes> for BytesCodec;
    = note: required for `FramedWrite<Pin<Box<dyn tokio::io::AsyncWrite + std::marker::Send>>, BytesCodec>` to implement `websocat_api::futures::Sink<_>`
help: try using a fully qualified path to specify the expected types
    |
346 |                 let w = <FramedWrite<Pin<Box<dyn tokio::io::AsyncWrite + std::marker::Send>>, BytesCodec> as SinkExt<Item>>::sink_map_err::<websocat_api::anyhow::Error, [closure@crates/websocat-ioless/src/lib.rs:346:40: 346:61]>(w, |e : std::io::Error |e.into());
    |                         +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ~
```

(in https://github.com/vi/websocat/commit/9ef27b9a06fa4e44b0a572136f14717cc4c5e997, caused by upgrade from tokio-util `0.6` -> `0.7`)

~~And I'm not sure how do I explicitly choose the impl I want when it is buried deep in third-party generics.~~

~~Aren't coherence rules designed to prevent this by the way?~~

The diagnostic is useful, but contains a lot of types that can be inferred instead, including the closure type. `<_ as SinkExt<bytes::Bytes>>::sink_map_err` makes it compile. It would be better if code suggestion preserved as much reliance on the type inference as possible.

`rustc 1.66.0-nightly (0da281b60 2022-10-27)`.
Repository: flutter
Issue: [flutter_adaptive_scaffold] Remove excessive `body` APIs.
Labels: c: new feature,package,c: proposal,team-ecosystem,P3,p: flutter_adaptive_scaffold,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->

The `AdaptiveScaffold` APIs are unecessary. Consider the following fields in the `AdaptiveScaffold` constructor.
```dart
  const AdaptiveScaffold({
    // ...
    this.smallBody,
    this.body,
    this.largeBody,
    this.smallSecondaryBody,
    this.secondaryBody,
    this.largeSecondaryBody,
    this.bodyRatio,
    // ...
  });
```
1. There is nothing in the [Material 3 Adaptive Spec](https://m3.material.io/foundations/adaptive-design/large-screens/overview) that suggests that either the body or secondary body will adapt itself when the screen size changes, so why have a `body` and `largeBody`. The only place I can see this being useful is in the parameter's omission, not the supplementation.
2. The Scaffold itself should concern itself with global navigation elements, similar to that of the `Scaffold` API, but not local/detail elements that are inside the body. I believe that the original intent of the `${size}Body` APIs to be configurable like a [Canonical Layout](https://m3.material.io/foundations/adaptive-design/canonical-layouts), but I think that we should extract the implementation of a Canonical Layout into a separate widget.
Repository: flutter
Issue: [flutter_adaptive_scaffold] ☂️ Animations Need Work
Labels: a: animation,package,team-ecosystem,P3,p: flutter_adaptive_scaffold,triaged-ecosystem

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Proposal

Animations in `flutter_adaptive_scaffold` need work.

- [ ] The animations on window resize aren't snappy.
- [ ] [Animating out shows empty content](https://github.com/flutter/flutter/issues/113342)

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching something showing what you are imagining:
      * images
      * videos
      * code samples

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: godot
Issue: 3.5.1 Always opens in 3D scene even when only 2D scenes exist
Labels: bug,topic:editor

### Godot version

3.5.1

### System information

Windows 11 Pro, AMD Ryzen 7, 32GB, GTX 1660 Ti

### Issue description

Before I upgraded to 3.5.1 my 2D project always opened in the 2D view.  Since 3.5.1 it always opens in 3D view even when there are no 3D scenes.  Even if I exit the game with my Main scene displaying at close, it still opens back up showing the 3D view.  It is a minor thing, but actually extremely annoying to not see my 2D scene when I open my 2D project.

### Steps to reproduce

Sorry, but I have tried and tried to reproduce this but I can't.  

### Minimal reproduction project

_No response_
Repository: godot
Issue: Using advance expression in AnimationTree always show warning even with a valid base node.
Labels: bug,topic:animation

### Godot version

Godot Engine v4.0.beta 61021c0

### System information

Windows 11, nvidia T600, Vulkan

### Issue description

Using advance expression in AnimationTree always show warning even with a valid base node.

Maybe this warning should move to the following if:
[https://github.com/godotengine/godot/blob/999df8cdbfb73286aed661699361de91766e68cc/scene/animation/animation_node_state_machine.cpp#L650](url)

```
		WARN_PRINT_ONCE("Animation transition has a valid expression, but no expression base node was set on its AnimationTree.");

		if (expression_base) {
			Ref<Expression> exp = transition->expression;
			bool ret = exp->execute(Array(), expression_base, false, Engine::get_singleton()->is_editor_hint()); // Avoids allowing the user to crash the system with an expression by only allowing const calls.
			if (!exp->has_execute_failed()) {
				if (ret) {
					return true;
				}
			}
		}
```

### Steps to reproduce

Using advance expression in AnimationTree and run.

### Minimal reproduction project

_No response_
Repository: rust
Issue: `#![allow(unknown_lints)]` forward compatibility is broken by unstable lints
Labels: A-lints,T-lang,T-compiler,C-bug,L-unknown_lints

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code:

```rust
#![allow(unknown_lints)]
#![warn(unsafe_op_in_unsafe_fn)]

pub fn add(left: usize, right: usize) -> usize {
    left + right
}
```

I expected to see this happen: The crate compiles on all Rust versions. `#![allow(unknown_lints)]` treats unstable lints as unknown on stable compilers.

Instead, this happened: On versions where the `unsafe_op_in_unsafe_fn` lint is unstable, like Rust 1.48.0, the crate fails to compile.

```console
$ cargo +1.64.0 check
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
$ cargo +1.38.0 check
    Finished dev [unoptimized + debuginfo] target(s) in 0.15s
$ cargo +1.48.0 check
    Checking unknown-lints-forward-compat v0.1.0 (/Users/lopopolo/Downloads/unknown-lints-forward-compat)
error[E0658]: the `unsafe_op_in_unsafe_fn` lint is unstable
 --> src/lib.rs:2:1
  |
2 | #![warn(unsafe_op_in_unsafe_fn)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: see issue #71668 <https://github.com/rust-lang/rust/issues/71668> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `unknown-lints-forward-compat`

To learn more, run the command again with --verbose.
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```console
$ rustc +1.64.0 --version --verbose
rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: x86_64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6
$ rustc +1.38.0 --version --verbose
rustc 1.38.0 (625451e37 2019-09-23)
binary: rustc
commit-hash: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
commit-date: 2019-09-23
host: x86_64-apple-darwin
release: 1.38.0
LLVM version: 9.0
$ rustc +1.48.0 --version --verbose
rustc 1.48.0 (7eac88abb 2020-11-16)
binary: rustc
commit-hash: 7eac88abb2e57e752f3302f02be5f3ce3d7adfb4
commit-date: 2020-11-16
host: x86_64-apple-darwin
release: 1.48.0
LLVM version: 11.0
```

<!--
Include a backtrace in the code block by setting `RUST_BACKTRACE=1` in your
environment. E.g. `RUST_BACKTRACE=1 cargo build`.
-->
<details><summary>Backtrace</summary>
<p>

```
<backtrace>
```

</p>
</details>

This ticket is a re-filing of https://github.com/rust-lang/rust/issues/103698 which uses the correct issue template and includes a reproducer.
Repository: yt-dlp
Issue: field string case format change from 'ANy cASe' to 'Title Case'
Labels: enhancement

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.10.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Functionality/options to change/convert 'ANy cASe' **field string case format** to 'Title Case' 
(for fields like 'Title', 'FileName', 'Keywords', etc.)

#5334 

[https://www.reddit.com/r/youtubedl/comments/ydpy8j/ytdlp_field_string_case_format_change_from_any/](https://www.reddit.com/r/youtubedl/comments/ydpy8j/ytdlp_field_string_case_format_change_from_any/)


### Provide verbose output that clearly demonstrates the problem

- [ ] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: rust
Issue: Missed opportunity for the "consider borrowing" hint
Labels: A-diagnostics,T-compiler,A-suggestion-diagnostics,D-newcomer-roadblock,D-terse

Given the following code:

```rust
pub struct NotCopy;

trait AsMutWhatever {}

impl AsMutWhatever for &mut NotCopy {}

pub fn case_1() {
    let mut not_copy = NotCopy; 
    
    takes_mut_not_copy(&mut not_copy);
    takes_mut_not_copy(&mut not_copy);
}

pub fn case_2(not_copy: &mut NotCopy) {
    takes_mut_not_copy(not_copy);
    takes_mut_not_copy(not_copy);
}

fn takes_mut_not_copy(_not_copy: impl AsMutWhatever) {
   // do nothing 
}
```

([playground link](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=124f10fe5b937188b3022ffcab288805))

... the current output is:

```
error [E0382]: use of moved value: `not_copy`
  --> src/lib.rs:16:24
   |
14 | pub fn case_2(not_copy: &mut NotCopy) {
   |               -------- move occurs because `not_copy` has type `&mut NotCopy`, which does not implement the `Copy` trait
15 |     takes_mut_not_copy(not_copy);
   |                        -------- value moved here
16 |     takes_mut_not_copy(not_copy);
   |                        ^^^^^^^^ value used here after move
```

Ideally, this should also display the `consider mutably borrowing 'not_copy': &mut *not_copy` hint, since that's the solution to problem 🙂
Repository: go
Issue: test/bench/go1: benchmark Mandelbrot200 is reduced to zero with gollvm
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.18 gollvm LLVM 15.0.0git 20221028 (experimental) 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/alex/.cache/go-build"
GOENV="/home/alex/.config/go/env"
GOEXE=""
GOEXPERIMENT="fieldtrack,regabiwrappers"
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/alex/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/alex/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/alex/test/gollvm/install"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/alex/test/gollvm/install/tools"
GOVCS=""
GOVERSION="go1.18 gollvm LLVM 15.0.0git 20221028 (experimental)"
GCCGO="/home/alex/test/gollvm/install/bin/llvm-goc"
GOAMD64="v1"
AR="ar"
CC="/usr/bin/cc"
CXX="/usr/bin/c++"
CGO_ENABLED="1"
GOMOD="/home/alex/test/go/test/bench/go1/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build712666364=/tmp/go-build -gno-record-gcc-switches -funwind-tables"
</pre></details>

### What did you do?

<pre>
$ cd test/bench/go1

$ go test -bench=. -count=10 -gccgoflags="-O3" -c -o go1_gollvm.out

$ ./go1_gollvm.out -test.bench "Mandelbrot200"
goos: linux
goarch: amd64
pkg: test/bench/go1
cpu: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
BenchmarkMandelbrot200-4        1000000000               0.0000004 ns/op
PASS
</pre>

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->



### What did you expect to see?

Nonzero result

### What did you see instead?

The output above.

The problem is that the function `mandelbrot` has no size effects and llvm eliminates its call. To fix the problem we need to check the result of `mandelbrot` in the caller function.
Repository: godot
Issue: Changing export type hint after assigning a Node does not check for invalid type.
Labels: bug,topic:editor

### Godot version

master

### System information

Windows 10

### Issue description

This issue comes from a problem raised by @willnationsdev while reviewing https://github.com/godotengine/godot/pull/67055. Quoting him:

> Say you have a Base, DerivedA, and DerivedB, along with an initially exported property of static type DerivedA. You assign a DerivedA node to it, but then modify the script with the property so that it exports DerivedB instead. Currently, the scene retains the reference to the node despite the fact that it now violates the exported property type. 

The issue does not seem to happen with `Resource`, it seems to be specific to `Node`.

### Steps to reproduce

1. Export a node type with class `A`:
```gdscript
@export var n : Sprite2D
```
2. Set a node of type `A` in the inspector
3. Change the export type hint to a class `B`
```gdscript
@export var n : Camera2D
```

The node `A` set previously in the inspector is still set after changing the type hint.

### Minimal reproduction project

Should be easy enough to reproduce from the example above
Repository: stable-diffusion-webui
Issue: [Feature Request]: Add open x output directory buttons to png info tab
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Add buttons that can open output (or custom) folders of txt2img/img2img/etc to png info tab

## Why

Png info is not only useful to check info of shared images, but also useful for quick settings fill of your own images. Lack a button to open output directory is not convenient for:

1. You are tweaking image with inpaint and try to revert to a older version before, you have to switch to `txt2img` tab and open output directory then switch back to png info, drag target image in and click `send to inpaint`
2. Your browser crashed, you want to fill all the settings to just like before, `load prompt from last generated` only load prompts, no settings, so you goto png tab and found that you forget to open output directory first, then you switch to `txt2img` tab, open the output and switch back
3. You drag a image to png info before but found that you're not satisfied with this version but you already closed the output folder, you switch to...switch back...
4. switch to...switch back....

### Proposed workflow

1. Open png info tab
2. Click open x output folder button
3. Drag image from x output folder to png info image source area


### Additional information

Something looks like this would be nice:

![1](https://user-images.githubusercontent.com/848607/198831520-954cc49c-3c27-4ff0-864f-eb9c22bbfc75.png)