sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Function request: scipy.interpolate.InterpolatedUnivariateSpline
Labels: triaged,module: numpy,function request,module: interpolation

A request for SciPy's [scipy.interpolate.InterpolatedUnivariateSpline](https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.InterpolatedUnivariateSpline.html?highlight=interpolatedunivariatespline).

Originally requested in https://github.com/pytorch/pytorch/issues/1552.

cc @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: Interpolation tracking issue
Labels: triaged,module: numpy,module: interpolation,tracker

This issue is a roll-up of interpolation-related discussion, requests and issues.

_Note that these requests need to be reviewed; we would not accept PRs implementing these requests at this time._

**Operator improvements and extensions**

- [ ] improved grid sampling, https://github.com/pytorch/pytorch/issues/24870
- [ ] "clean-fid", https://github.com/GaParmar/clean-fid

**Operator requests:**

- [ ] https://github.com/pytorch/pytorch/issues/50334
- [ ] https://github.com/pytorch/pytorch/issues/50335
- [ ] https://github.com/pytorch/pytorch/issues/50340
- [ ] https://github.com/pytorch/pytorch/issues/50337
- [ ] https://github.com/pytorch/pytorch/issues/50338
- [ ] https://github.com/pytorch/pytorch/issues/50339
- [ ] https://github.com/pytorch/pytorch/issues/50336
- [ ] https://github.com/pytorch/pytorch/issues/61528

**Additional mode requests:**

- [ ] add half_pixel_centers to torch.nn.functional.Bilinear, https://github.com/pytorch/pytorch/issues/48389
- [ ] add more modes to torch.nn.functional.grid_sample, https://github.com/pytorch/pytorch/issues/25039
- [ ] review torch.nn.functional.grid_sample documentation, https://github.com/pytorch/pytorch/issues/5565

**Bugs:**

- [ ] torch.nn.functional.grid_sample downsampling doesn't always match torch.nn.functional.interpolate downsampling, https://github.com/pytorch/pytorch/issues/21457
- [ ] torch.nn.functional.interpolate behaves unexpectedly with output size 1, https://github.com/pytorch/pytorch/issues/30565
- [x] nearest interpolation is misaligned, https://github.com/pytorch/pytorch/issues/34808
- [ ] https://github.com/pytorch/pytorch/issues/15386

cc @mruberry @rgommers @heitorschueroff @ppwwyyxx
Repository: pytorch
Issue: torch.any and torch.all map uint8 -> uint8 but should map uint8 -> bool
Labels: module: bc-breaking,triaged,module: numpy,module: reductions,topic: bc breaking

This historic behavior was preserved in recent updates to torch.any and torch.all because it's relied upon by some PyTorch programs. Changing this is BC-breaking and requires a torchscript adapter be written.

cc @ezyang @gchanan @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: RFC: identify analogous NumPy operators when documenting PyTorch operators
Labels: module: docs,triaged,module: numpy

Today in PyTorch operators are often compatible with their NumPy counterparts, but their documentation makes no mention of this. JAX, in contrast, links the corresponding NumPy function in their documentation. See, for example, https://jax.readthedocs.io/en/latest/_autosummary/jax.numpy.abs.html#jax.numpy.abs.

This RFC proposes that PyTorch's operator documentation adopts a similar approach, and where a PyTorch operator's name corresponds with a NumPy operator's the documentation should explicitly mention this as well as how the functions are the same or different.



cc @jlin27 @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: NumPy Compatibility tracking issue
Labels: high priority,triaged,module: numpy,tracker

This issue is a roll-up of NumPy Compatibility-related discussion, requests and issues.

PyTorch has a goal of being familiar to NumPy and SciPy users, and interoperating with libraries that work with NumPy-compatible tensors. Some "sub-trackers" for this tracker are https://github.com/pytorch/pytorch/issues/38349, where requests for functions in the numpy namespace are tracked, https://github.com/pytorch/pytorch/issues/42175, where the development of a NumPy-compatible fft module is tracked, and https://github.com/pytorch/pytorch/issues/42666, where the development of a NumPy-compatible linalg module is tracked. Unlike those more detailed trackers, this one is intended for significant cross-cutting tasks, not individual functions or bugs.

**Module Compatibility**
- [x] Implement torch.fft, compatible with np.fft (https://github.com/pytorch/pytorch/issues/42175)
- [x] Implement torch.linalg, compatible with np.linalg (https://github.com/pytorch/pytorch/issues/42666)
- [x] Implement "missing" functions in the NumPy namespace (https://github.com/pytorch/pytorch/issues/38349)
- [x] Implement torch.special for existing PyTorch functions analogous to scipy.special functions (https://github.com/pytorch/pytorch/issues/50345)

**Doc Improvements**
- [ ] Create a NumPy Compatibility note (https://github.com/pytorch/pytorch/issues/48628)
- [ ] RFC: Update PyTorch function documentation to identify the corresponding NumPy function (https://github.com/pytorch/pytorch/issues/50343)



cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @anjali411 @mruberry @rgommers @heitorschueroff
Repository: pytorch
Issue: torch.special tracking issue
Labels: triaged,module: numpy,module: special,tracker

This issue tracks features and bugs in PyTorch's torch.special module, which is modeled after scipy.special.

**Aliases to add**
   - [x] Alias softmax
   - [ ] Alias kl_div

**Ops to add** (NOTE: We are not adding ops until we can reduce their impact on build time and CUDA context size.)
   - [ ] Add iv
   - [ ] Add ive
   - [ ] Add kv
   - [ ] Add logerfc (see https://github.com/pytorch/pytorch/issues/31945)
   - [ ] Add logerfcx (see https://github.com/pytorch/pytorch/issues/31945)
   - [ ] Add hyp2f1
   - [ ] Add betainc (being added in #58700)
   - [ ] #74630
   - [ ] gammaincinv
   - [ ] gammainccinv

**Bugs**
   - [x] Probable mathematical error in torch.functional.kl_div() https://github.com/pytorch/pytorch/issues/57459
   - [ ] [feature] torch.polygamma : Support Tensor for argument n https://github.com/pytorch/pytorch/issues/55299
   - [x] torch.polygamma inconsistent with scipy.special.polygamma for n >= 1 https://github.com/pytorch/pytorch/issues/55357

**TODO**
  - [ ] Review Docs (especially `logit`)
  - [ ] `torch.special.expit` should point to `torch.sigmoid` (currently it is opposite) 

**Notes**
Reference PR for migrating ops to special namespace : https://github.com/pytorch/pytorch/pull/53260

cc @mruberry @rgommers @heitorschueroff @kshitij12345
Repository: pytorch
Issue: how to save weights when using RPC framework
Labels: oncall: distributed,triaged,module: rpc

Hi,

I am using the RPC framework to split the model across different processes/ranks. However, I notice that calling torch.save will only save the weights of the part of the model on a single rank. I am wondering if there is a way to save the weights of all models into one file?


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @jjlilley @osalpekar @jiayisuse @mrzzd @agolynski @SciPioneer @H-Huang @cbalioglu
Repository: godot
Issue: Backquote not registering in UK keyboard
Labels: bug,topic:input

**Godot version:**
3.2.3

**OS/device including version:**
64 bit Windows 10
64 bit Linux Mint

**Issue description:**
On Linux I coded a key for backtick (quoteleft) as below.
![image](https://user-images.githubusercontent.com/12863685/104120769-62bd2d00-5331-11eb-8b7f-bfe38c9bac9d.png)

On running on Windows it did not work and instead had mapped itself to single quote.

Refer to the code and window below. I am using a UK region keyboard on linux and windows and every application picks up the back quote ` and single quote ' correctly. However, in Godot it fails to pick up the backquote and instead is mixing it up with single quote.

```
func _input(event):
	if event is InputEventKey:
		print("Keypress: ", event.scancode, ", key = ", OS.get_scancode_string(event.scancode))
```

![image](https://user-images.githubusercontent.com/12863685/104120758-51742080-5331-11eb-982f-1edeced3f865.png)


** Note
Just to reiterate, this is not a keyboard/language/region issue, it is uk region 105 keyboard all the way and both keys fuction properly in every application in Windows, it is only Godot failing to find ` and instead thinks it is a random key and when I press ' it thinks it is 

> `

![image](https://user-images.githubusercontent.com/12863685/104120870-132b3100-5332-11eb-941f-f85b2d2e47e7.png)
Repository: TypeScript
Issue: jump to definition suggest file has nothing to do with my project
Labels: Bug,Domain: Symbol Navigation

# Bug Report


### 🔎 Search Terms

jump to definition suggest file has nothing to do with my project 


### 🕗 Version & Regression Information

Version: 1.52.1
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:30:02.420Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 20.2.0

### ⏯ Playground Link

none

### 💻 Code


```js
import React, { useEffect } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import OrderTable from '../orderTable/OrderTable'
const Home = ({
	allData,
	userToken,
}) => {
	
	return (
		<React.Fragment>
			{userToken && <OrderTable allData={allData} />}
		</React.Fragment>
	)
}

function mapStateToProps(state) {
	return {
		allData: state.home.allData,
		userToken: state.auth.userToken,
	}
}
function mapDispatchToProps(dispatch) {
	return bindActionCreators({ getHomePageData, getProductName }, dispatch)
}
export default connect(mapStateToProps, mapDispatchToProps)(Home)

```

<img width="941" alt="Screen Shot 2021-01-10 at 6 01 39 PM" src="https://user-images.githubusercontent.com/538657/104121214-290b1700-536f-11eb-9286-abd2aff7ea3c.png">


### 🙁 Actual behavior

Jump to definition normally work like this, when I import a file or a module or a react component. press jump to definition will take me that file. But this case, vs code open 2 suggestion, suggesiton 1 is the file I want to go, suggestion 2 is the file has nothing to with my project, and it's not even within my project.

As you can see in the picture, I'm jumping to OrderTable component, Vscode suggestion OrderTable  and some weird file in ~library/caches/typescript/4.1/node_modules.

### 🙂 Expected behavior

I want when I press jump to definition, I will be taken immediately directly to that file, instead seeing a suggestion of some totally unrelated files
Repository: flutter
Issue: shrinkWrap for Stepper
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

<!-- 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
-->

## Use case

<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe the alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

I want to show a bottom sheet with a horizontal stepper content, currently stepper expand itself, I want to have min height,
I think by replacing [Expanded](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/stepper.dart#L720) to Flexible we can do it

## Proposal

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     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.
-->

Add `shrinkWrap` prop to Stepper and switch between `Expanded` and `Flexible`
Repository: node
Issue: investigate flaky parallel/test-http-server-request-timeout-keepalive
Labels: http,flaky-test



* **Test**: parallel/test-http-server-request-timeout-keepalive
* **Platform**: Ubuntu 18.04 x64
* **Console Output:**
```
not ok 1236 parallel/test-http-server-request-timeout-keepalive
  ---
  duration_ms: 1.783
  severity: fail
  exitcode: 1
  stack: |-
    performRequestWithDelay 50 500
    node:assert:119
      throw new AssertionError(obj);
      ^
    
    AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
    + actual - expected
    
    + 'HTTP/1.1 408 Request Timeout'
    - 'HTTP/1.1 200 OK'
                ^
        at Socket.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux/nodes/ubuntu1804-64/test/parallel/test-http-server-request-timeout-keepalive.js:56:14)
        at Socket.<anonymous> (/home/iojs/build/workspace/node-test-commit-linux/nodes/ubuntu1804-64/test/common/index.js:377:15)
        at Socket.emit (node:events:379:20)
        at addChunk (node:internal/streams/readable:311:12)
        at readableAddChunk (node:internal/streams/readable:286:9)
        at Socket.Readable.push (node:internal/streams/readable:225:10)
        at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
      generatedMessage: true,
      code: 'ERR_ASSERTION',
      actual: 'HTTP/1.1 408 Request Timeout',
      expected: 'HTTP/1.1 200 OK',
      operator: 'strictEqual'
    }
  ...
```
* **Build Links**: https://ci.nodejs.org/job/node-test-commit-linux/nodes=ubuntu1804-64/39255/consoleText
Repository: flutter
Issue: [camera] Orientation fail on Android 8 
Labels: platform-android,p: camera,package,e: OS-version specific,has reproducible steps,P2,team-android,triaged-android,found in release: 3.19,found in release: 3.22

Last update «0.6.4+5»

Ok working on Android 10.

But does not work correctly on Android 8.0 with orientation.

Please take a look at the preview image in the bottom right corner
Android 10 - OK
<img src="https://user-images.githubusercontent.com/32374709/104124575-6c678480-5373-11eb-9ff9-96bf6c353288.png" width="250" height="550" />



Android 8 - fail orientation

<img src="https://user-images.githubusercontent.com/32374709/104124582-725d6580-5373-11eb-9b87-e1c129f2009d.png" width="250" height="550" />



Also application crashes on Huawei 10P Lite with android 8.0.0 on controller.takePicture function, but video working.
Repository: angular
Issue: Add a section about testing structural directive 
Labels: P3,docsarea: testing,area: docs

# 📚 Docs or angular.io bug report

### Description
Similar to what we have in https://angular.io/guide/testing-attribute-directives, I want to suggest the creation of a section about testing structural directive.

Related to https://github.com/angular/angular/issues/32340.
Repository: create-react-app
Issue: Exception for Fast Refresh
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?
Hi, 

I'm using[ axios-mock-adapter ](https://github.com/ctimmerm/axios-mock-adapter) to demonstrate api calls.
It catches HTTP requests then you can respond with the data which you provide.

Without the **Fast Refresh**, the changes on the files detected by the cra and reloads the app.

But with the **Fast Refresh**, even the changes detected (i guess), the request won't be triggered and not updates the app.


### Describe the solution you'd like
It would be good to define an exception for partially disabling fast refresh.
Can be detected with the comment blocks or with a configuration.

Kind regards.
Repository: pytorch
Issue: torch.tril_indices is incompatible with np.tril_indices
Labels: triaged,module: numpy,module: deprecation,module: ux

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
The return type of numpy.tril_indices is a tuple of arrays while torch.tril_indices returns a single tensor. The issue could be that they might not produce the same results if utilised in the same manner on a tensor as shown below. Are the tril_indices from torch to be used in a different fashion?

## To Reproduce

![image](https://user-images.githubusercontent.com/43226067/104126773-75148680-5384-11eb-8fc6-39de700afd31.png)


<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->
Both techniques return the same answer.

## Environment

 - PyTorch Version (e.g., 1.0): 1.8.0a0+36ddb00
 - OS (e.g., Linux): Ubuntu 20.04.1 LTS (x86_64)
 - Python version: 3.8
 - Numpy version: 1.19.5

## Additional context

<!-- Add any other context about the problem here. -->

Numpy's second param is offset(k) and hence set to 0.

@mruberry @ngimel @rgommers 

cc @mruberry @rgommers @heitorschueroff
Repository: ant-design
Issue: Tabs.TabPane not support  data-* attributes
Labels: Inactive

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/jiben-antd4101-forked-rtjvt)

### Steps to reproduce
open chrome dev tools to find data-node-id attribute.

### What is expected?
data-node-id will be found.

### What is actually happening?
not found.

| Environment | Info |
|---|---|
| antd | 4.10.1 |
| React | 16.x |
| System | osx |
| Browser | chrome |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: rustdoc: Link references are case-insensitive
Labels: T-rustdoc,C-bug,A-markdown-parsing

EDIT(camelid): This is not an intra-doc links issue. See https://github.com/rust-lang/rust/issues/80882#issuecomment-757533067.

-----

I found a glitch in the std/core library docs.  The docs for [`PartialEq`](https://doc.rust-lang.org/core/cmp/trait.PartialEq.html) contain this snippet:

```
/// This trait allows for partial equality, for types that do not have a full
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
/// so floating point types implement `PartialEq` but not [`Eq`].
```

At present, the `Eq` link has the wrong target, because rustdoc links it to the method `eq` instead.

I sent a PR that forces the correct linkage (#80864) for this instance, but perhaps rustdoc could be smarter here?

On that PR @jyn514 writes:
> This is a bug in rustdoc for several reasons:
>
> - It shouldn't treat identifiers as case-insensitive
> - It should give a warning if the link is ambiguous
Repository: pytorch
Issue: for CNN in fp16 execution time depends on input scale
Labels: module: performance,module: nn,module: cuda,triaged,module: half

## 🐛 Bug

Using a convolutional model in half-precision has execution time dependent upon the input scale.

## To Reproduce

```
import torch
import torch.nn as nn
import torch.nn.functional as F



class network(nn.Module):
    def __init__(self):
        super().__init__()
        self.num_layers = 4
        self.num_filters = 32
        self.convs = nn.ModuleList([
            nn.Conv2d(9, self.num_filters, 3, stride=2),
            nn.Conv2d(self.num_filters, self.num_filters, 3, stride=1),
            nn.Conv2d(self.num_filters, self.num_filters, 3, stride=1),
            nn.Conv2d(self.num_filters, self.num_filters, 3, stride=1)
        ])

    def forward(self, obs):
        conv = torch.relu(self.convs[0](obs))
        for i in range(1, self.num_layers):
            conv = torch.relu(self.convs[i](conv))
        h = conv.view(conv.size(0), -1)
        return h


def time(model, x):
    torch.cuda.synchronize()
    start = torch.cuda.Event(enable_timing=True)
    end = torch.cuda.Event(enable_timing=True)
    start.record()
    for _ in range(100):
        y = model(x)
        loss = (y**2).sum()
        loss.backward()
    end.record()
    torch.cuda.synchronize()
    return start.elapsed_time(end)


torch.manual_seed(0)

# fp16
x = torch.randn(512, 9, 84, 84).half().cuda()
model = network().half().cuda()
t1 = time(model, x)
x = x*1e5
t2 = time(model, x)
print('half precision:', 'time on randn', t1, 'time on randn*1e5', t2)


# fp32
x = torch.randn(512, 9, 84, 84).cuda()
model = network().cuda()
t1 = time(model, x)
x = x*1e5
t2 = time(model, x)
print('full precision:', 'time on randn', t1, 'time on randn*1e5', t2)

```

the output is

```
half precision: time on randn 2078.74755859375 time on randn*1e5 1798.8956298828125
full precision: time on randn 3340.018798828125 time on randn*1e5 3340.420166015625
```

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior

The time shouldn't be dependent upon the scale of the input.

## Environment

 - PyTorch Version (e.g., 1.0): 1.7.1.
 - OS (e.g., Linux): CentOS
 - How you installed PyTorch (`conda`, `pip`, source): conda
 - Build command you used (if compiling from source): n/a
 - Python version: 3.7
 - CUDA/cuDNN version: 10.2/ 7.6.0.5
 - GPU models and configuration: Tesla v100




cc @albanD @mruberry @jbschlosser @VitalyFedyunin @ngimel
Repository: next.js
Issue: Opt out of scroll restoration when using browser back buttons
Labels: Navigation

**Describe the feature you'd like to request**

There is a clear way to opt out of Next.js scroll restoration when using `Link` or `router.push`: just pass `{ scroll: false }`. However, I haven't found a clear way to opt out of scroll restoration when using the browser back/forward buttons.

I spent a little while reading the source of the `popState` handler, and it seems like the router will *always* jump either to the scroll position in sessionStorage or to the top of the page. 

**Describe the solution you'd like**

Ideally, there would be some kind of router configuration option by which an app could opt out of the router messing with scroll position completely.

**Describe alternatives you've considered**

I've considered trying to mess with the scroll value stored in `sessionStorage` during `onPopState`, but this seems like a really convoluted workaround that might not hold up in future Next.js releases.
Repository: vscode
Issue: [html] support imports in embedded JavaScript
Labels: feature-request,html

- VSCode Version: 1.52.1
- OS Version: Windows 10.0.19042.685

Steps to Reproduce:

1. Create a HTML File with `<script type="module">...</script>`
2. Add `// @ts-check` and import any npm package
3. No intellisense

Does this issue occur when all extensions are disabled?: Yes

If we would do the same steps with a .js file, IntelliSense will work:
![1](https://user-images.githubusercontent.com/45216083/104137794-5e2b5f80-5397-11eb-99c3-4e9cc0daca18.png)

It is not working in .html however:
![2](https://user-images.githubusercontent.com/45216083/104137798-68e5f480-5397-11eb-9d2a-fec9e3b1f86d.png)

Error:
`Cannot find module 'hydro-js'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?javascript`

Tried troubleshooting:
1. Created a jsconfig.json file
2. Tried the above error suggestions.