sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: [caffe2] How to freeze a layer?
Labels: caffe2

Hi, I'm working on caffe2.
I want to know how to freeze a certain layer, which means I don`t want to update a parameter (weight, bias) of a certain conv layer. How can I implement this feature? I found Stopgradient, Negategradient, Zerogradient in caffe2 doc, however none of them seems useful for me.
Repository: flutter
Issue: Add details to Canvas.transform API doc, specifically format of the matrix
Labels: framework,engine,d: api docs,P3,team-engine,triaged-engine

This is necessary because the matrix used in Canvas is 4x4 whereas in Skia (and SVG) it is 3x3.
Something like this would do it:
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform
Repository: rust
Issue: Compiler allows mutating immutable variables in unreachable code
Labels: C-enhancement,A-diagnostics,T-compiler

IMO, this should give a compiler error:
https://play.rust-lang.org/?gist=13095cf519ab250005688bf214e2482f&version=stable

```rust
fn main() {
    let x = 1;
    return;
    x += 2;
}
```
Repository: pytorch
Issue: [caffe2] Prefetching blobs for memory optimization
Labels: caffe2

Hi,
I am wondering if there is a way to free, prefetch blobs and manually feed the outputs of layers to one another so that I am able to optimize memory use on GPUs. 
Moreover, I am currently trying to implement something like the vDNN (virtualized Deep Neural Network) mentioned in this paper [https://arxiv.org/pdf/1602.08124.pdf](url). Is this a possibility in caffe2?
Repository: vue
Issue: add `options` property to the render context of functional component
Labels: feature request

### What problem does this feature solve?
Custom properties in the options of functional component can't be accessed easily.

### What does the proposed API look like?
In the render function of functional component, options can be accessed by `context.options`, just like `vm.$options`(https://vuejs.org/v2/api/index.html#vm-options)

related issue #7492

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: go
Issue: cmd/compile: unexpected memequal call in short string comparison
Labels: Suggested,Performance,help wanted,NeedsFix,compiler/runtime

(Using Go tip, 8818b4d27)

Compiling this code on amd64,

```go
type BoxType [4]byte

func (t BoxType) EqualString(s string) bool {
        return string(t[:]) == s
}
```

I would expect that to compile to something pretty minimal, since the memory comparison must always be 4 bytes, but instead I see a call to memequal:

```
"".BoxType.EqualString STEXT size=103 args=0x20 locals=0x28
        0x0000 00000 (./bmff/bmff.go:62)        TEXT    "".BoxType.EqualString(SB), $40-32
        0x0000 00000 (./bmff/bmff.go:62)        MOVQ    (TLS), CX
        0x0009 00009 (./bmff/bmff.go:62)        CMPQ    SP, 16(CX)
        0x000d 00013 (./bmff/bmff.go:62)        JLS     96
        0x000f 00015 (./bmff/bmff.go:62)        SUBQ    $40, SP
        0x0013 00019 (./bmff/bmff.go:62)        MOVQ    BP, 32(SP)
        0x0018 00024 (./bmff/bmff.go:62)        LEAQ    32(SP), BP
        0x001d 00029 (./bmff/bmff.go:62)        FUNCDATA        $0, gclocals·a20105803dd226ab8faa525f9ceddf12(SB)
        0x001d 00029 (./bmff/bmff.go:62)        FUNCDATA        $1, gclocals·69c1753bd5f81501d95132d08af04464(SB)
        0x001d 00029 (./bmff/bmff.go:63)        MOVQ    "".s+64(SP), AX
        0x0022 00034 (./bmff/bmff.go:63)        CMPQ    AX, $4
        0x0026 00038 (./bmff/bmff.go:63)        JEQ     56
        0x0028 00040 (./bmff/bmff.go:63)        XORL    AX, AX
        0x002a 00042 (./bmff/bmff.go:63)        MOVB    AL, "".~r1+72(SP)
        0x002e 00046 (./bmff/bmff.go:63)        MOVQ    32(SP), BP
        0x0033 00051 (./bmff/bmff.go:63)        ADDQ    $40, SP
        0x0037 00055 (./bmff/bmff.go:63)        RET
        0x0038 00056 (./bmff/bmff.go:63)        LEAQ    "".t+48(SP), AX
        0x003d 00061 (./bmff/bmff.go:63)        MOVQ    AX, (SP)
        0x0041 00065 (./bmff/bmff.go:63)        MOVQ    "".s+56(SP), AX
        0x0046 00070 (./bmff/bmff.go:63)        MOVQ    AX, 8(SP)
        0x004b 00075 (./bmff/bmff.go:63)        MOVQ    $4, 16(SP)
        0x0054 00084 (./bmff/bmff.go:63)        PCDATA  $0, $1
        0x0054 00084 (./bmff/bmff.go:63)        CALL    runtime.memequal(SB)
        0x0059 00089 (./bmff/bmff.go:63)        MOVBLZX 24(SP), AX
        0x005e 00094 (./bmff/bmff.go:63)        JMP     42
        0x0060 00096 (./bmff/bmff.go:63)        NOP
        0x0060 00096 (./bmff/bmff.go:62)        PCDATA  $0, $-1
        0x0060 00096 (./bmff/bmff.go:62)        CALL    runtime.morestack_noctxt(SB)
        0x0065 00101 (./bmff/bmff.go:62)        JMP     0
```

Ideally we'd just do a 4 byte (potentially unaligned) load from the string into a register and compare with the receiver?

/cc @josharian @randall77 @rasky
Repository: godot
Issue: Watch for edited resources in editor
Labels: enhancement,topic:editor,topic:plugin

So I am writing a C++ plugin for godot. The user assigns a material to my custom Spatial node. Now I want to be notified when this material is changed in the editor.

It seems the add_change_receptor API nor the CoreStringNames::get_singleton()->changed signal are emitted when say the materials albedo colour changes for example.
So my next avenue was to try to connect to the property editor "variant_changed" signal, but there seems to be no way to determine what object the Property editor is editing.

I would like some way to watch when the material is modified.
Repository: rust
Issue: libproc_macro: get crate for span or support $crate metavar in quote!{}
Labels: T-compiler,C-feature-request,A-macros-1.2

[One Reddit user was asking how to reference the invoking crate in a proc-macro](https://www.reddit.com/r/rust/comments/88xvgg/hey_rustaceans_got_an_easy_question_ask_here/dx0kp1f/), suggesting that `quote!{}` should support the `$crate` metavar. I don't think this is too unreasonable since `$` is already used for unquoting variables but `crate` couldn't be a user variable since it's a keyword.

Alternately, I think `Span` could have a method telling us what crate it comes from as a `String`.

cc @alexcrichton @dtolnay
Repository: TypeScript
Issue: Documentation: Clarify declaration files and the declare keyword
Labels: Docs

**TypeScript Version:**  2.8.0

**Search Terms:** 
document declaration files

** Issue**
It doesn't look like you actually define what a declaration file is in your documentation. For instance, your introduction to these at https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html tells me you're going to help me learn how to write them, but not what they are or why I'd want one.  But, I don't think this makes it easy for a newbie to understand.

Similarly, you don't seem to explain when the `declare` keyword is, or when it should be used (as far as I can tell, it is used when you need to tell the compiler that the module/library/whatever has a value of some type).

You also seem to make some references to the global namespace (`declare global { ... }`)), but don't seem to directly explain it anywhere.

**Code**
n/a

**Expected behavior:**
n/a

**Actual behavior:**
n/a

**Playground Link:**
n/a

**Related Issues:**
n/a
Repository: rust
Issue: Tracking issue for  RFC 2295, "Extend Pattern API to OsStr"
Labels: A-FFI,B-RFC-approved,T-libs-api,C-tracking-issue,Libs-Tracked

This is a tracking issue for the RFC "Extend Pattern API to OsStr" (rust-lang/rfcs#2295).

**Steps:**

- [ ] Implement the RFC (cc @kennytm)
- [ ] Adjust documentation ([see instructions on forge][doc-guide])
- [ ] Stabilization PR ([see instructions on forge][stabilization-guide])

[stabilization-guide]: https://forge.rust-lang.org/stabilization-guide.html
[doc-guide]: https://forge.rust-lang.org/stabilization-guide.html#updating-documentation

**Unresolved questions:**

None


<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"pitaj"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: rust
Issue: Tracking issue for RFC 2102, "Unnamed fields of struct and union type"
Labels: B-RFC-approved,T-lang,E-help-wanted,C-tracking-issue,S-tracking-impl-incomplete,S-tracking-design-concerns,F-unnamed_fields

This is a tracking issue for the RFC "Unnamed fields of struct and union type" (rust-lang/rfcs#2102).
The feature gate for the issue is `#![feature(unnamed_fields)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

- [ ] Implement the RFC (see https://github.com/rust-lang/rust/issues/49804#issuecomment-798768285 for mentoring instructions)
- [ ] Adjust documentation ([see instructions on forge][doc-guide])
- [ ] Formatting for new syntax has been added to the [Style Guide] ([nightly-style-procedure])
- [ ] Stabilization PR ([see instructions on forge][stabilization-guide])

[stabilization-guide]: https://forge.rust-lang.org/stabilization-guide.html
[doc-guide]: https://forge.rust-lang.org/stabilization-guide.html#updating-documentation
[Style Guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide
[nightly-style-procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md

### Unresolved questions

*None so far.*

### Implementation history

* #115131
* #115367
* #121198

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"frank-king"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: vue
Issue: The values of some attributes are replaced with the attribute name, which breaks MathML
Labels: improvement

### Version
2.5.16

### Reproduction link
[https://gist.github.com/VelizarHristov/edaf4cf0d7b9f90c1e5d6070c027237f](https://gist.github.com/VelizarHristov/edaf4cf0d7b9f90c1e5d6070c027237f)

### Steps to reproduce
Open the HTML in a browser (Internet connection is required to fetch the libraries).

### What is expected?
[] should be displayed

### What is actually happening?
open] is displayed

---
It comes from this line of code: https://github.com/vuejs/vue/blob/aa1356e83de1112660e7a88ff955f49d64bb5b1f/src/platforms/web/server/modules/attrs.js#L49

The list of rewritten attributes is here: https://github.com/vuejs/vue/blob/7116af4e07520040ed7328c39d0a456808bfe1e1/src/platforms/web/util/attrs.js#L22

This is a general problem when including a block of XML in the HTML.

<!-- generated by vue-issues. DO NOT REMOVE -->
Repository: go
Issue: x/sys/windows: Windows Service does not stop
Labels: OS-Windows,NeedsInvestigation,compiler/runtime

Please answer these questions before submitting your issue. Thanks!


### What version of Go are you using (`go version`)?
go version go1.10.1 windows/amd64

### Does this issue reproduce with the latest release?
Yes

### What operating system and processor architecture are you using (`go env`)?
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\azret\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\azret\go
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\azret\AppData\Local\Temp\go-build856806762=/tmp/go-build -gno-record-gcc-switches

### What did you do?
https://github.com/golang/sys/blob/master/windows/svc/example/service.go in Line 42 I fixed a bug - the service is not stopping but just exits from the loop. 

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?
I expected the Windows Service to stop.

### What did you see instead?
It did not stop and even did not stop when I tried to force stop it from Service Management Tool.
Repository: pytorch
Issue: [utils.bottleneck] List of improvements
Labels: todo,triaged,module: bottleneck

Leaving this here as a reminder to self.
Things to add:
- [ ] Add sample output to docs
- [ ] Clarify CUDA profiling gotchas in docs
- [x] Test stability: If user isn't using `python` (ie, if they're using `python3`), the tests will fail.
- [ ] Use average keys (if not already using)
Repository: go
Issue: x/build/cmd/gopherbot: “congratulations” message posted long after a change was abandoned
Labels: Builders,NeedsInvestigation

See https://go-review.googlesource.com/c/sys/+/103858#message-7f834fe611a18c00129b9fef17acee53ecf05a6a

The “congrats” message is posted April 9, but it was abandoned April 4.

/cc @kevinburke
Repository: go
Issue: types2: type-check `syntax` nodes directly (don't use types2 maps)
Labels: NeedsInvestigation

[edit: By setting type information directly in `syntax` nodes rather than storing in `types2` maps, we should be able to recover some of the compiler speed loss of Go 1.18.]

We should move type-checking to operate directly on the new syntax nodes. Placeholder issue.

Set for Go1.12 so it stays on the radar. Unclear yet if that is a realistic goal.
Repository: pytorch
Issue: Examine contiguity requirements for gradInput
Labels: triaged

For THNN updateGradInput functions, am not 100% sure if gradInput is always initialized as an empty tensor.

cc @li-roy
Repository: pytorch
Issue: [caffe2] Double precision for operators?
Labels: caffe2

A lot of the operators are not defined for double precision. I am planning on experimenting with double precision calculations and will add them as necessary. Would there be interest in me submitting a PR request with them? Is there a reason they are not currently enabled? The only drawback is larger library file size and slower compilation time but I suppose not by much.

Thank you,
Svet
Repository: godot
Issue: Cannot create more than 65536 PoolByteArrays 
Labels: bug,discussion,topic:core,confirmed

**Godot version:**
3.0.1


**OS/device including version:**
Windows 7, 64bit


**Issue description:**
Attempted to create a very large number of [PoolByteArrays](http://docs.godotengine.org/en/3.0/classes/class_poolbytearray.html) but as soon as more than 65536 (maximum for a 16 bit number) of them are created the game becomes unresponsive and crashes.  


**Steps to reproduce:**
The following code crashes but if you change the variable `maxNum` to 65535 or less it works as expected.  

```
extends Node

var testArr = []
var randNumber
var randNumberTwo
var maxNum = 65536  # <- reduce by one and this code works

func _ready():
	for i in maxNum:
		randNumber = randi() % 100
		randNumberTwo = randi() % 200
		var bytePool = PoolByteArray()
		bytePool.push_back(randNumber)
		bytePool.push_back(randNumberTwo)
		testArr.push_back(bytePool)

	print("Done!")
	print(testArr.size())

```


**Minimal reproduction project:**
[PoolByteArrays.zip](https://github.com/godotengine/godot/files/1891791/PoolByteArrays.zip)
<!-- Recommended as it greatly speeds up debugging. Drag and drop a zip archive to upload it. -->
Repository: flutter
Issue: UX for finder errors in driver needs improvement
Labels: a: tests,tool,framework,t: flutter driver,c: proposal,a: error message,P2,team-framework,triaged-framework

My team is frequently confused by errors that driver tests provide.

Example:

Let's say we have this line:

```
await driver.tap(find.byTooltip('Back'));
```

And we remove a screen that has the back button. The error we get is:

```
DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed...
```

We could improve this error message by saying something like:

```
DriverError: Tap failed. Timed out after waiting 5 seconds to find tooltip with text "Back".
```
Repository: flutter
Issue: [a11y] contrast between caption and white to low
Labels: framework,a: accessibility,f: cupertino,from: a11y review,P2,team-design,triaged-design

In the Cupertino theme the contrast between a white background and the caption text style is only 4.3. It needs to be 4.5 or better.

We currently use black54 for this, but according to spec grey700 (for a contrast ratio of 6) should be used.
Repository: rust
Issue: better error messages when documentation tests fail
Labels: T-rustdoc,C-enhancement,A-diagnostics,A-doctests

Few days ago my code started to failing for some reason. After some research I found that everything wrapped in ticks (code) is tested by default (new feature? not failing on stable). Error message was not very helpful and I was wondering if there was a way to make error message nicer.

```
Doc-tests slime
     Running `rustdoc --test /home/travis/build/jaroslaw-weber/slime/src/lib.rs --crate-name slime -L dependency=/home/travis/build/jaroslaw-weber/slime/target/debug/deps -L native=/home/travis/build/jaroslaw-weber/slime/target/debug/build/backtrace-sys-1971e506b73c6055/out/.libs -L dependency=/home/travis/build/jaroslaw-weber/slime/target/debug/deps --extern toml=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libtoml-bc45e8f131e8cc1d.rlib --extern slime=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libslime-7825b794b397c4d0.rlib --extern serde_json=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libserde_json-5ae15ac5c0b54e23.rlib --extern failure=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libfailure-b4d75b472e3bd251.rlib --extern fs_extra=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libfs_extra-b486394ae399718d.rlib --extern handlebars=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libhandlebars-f60000f1622466b3.rlib --extern serde=/home/travis/build/jaroslaw-weber/slime/target/debug/deps/libserde-aaecc1e461c12055.rlib`
running 1 test
test src/lib.rs - Slime (line 25) ... FAILED
failures:
---- src/lib.rs - Slime (line 25) stdout ----
	error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `new`
 --> src/lib.rs:26:7
  |
3 | cargo new --bin crate_name
  |       ^^^ expected one of 8 possible tokens here
error[E0425]: cannot find value `cargo` in this scope
 --> src/lib.rs:26:1
  |
3 | cargo new --bin crate_name
  | ^^^^^ not found in this scope
thread 'src/lib.rs - Slime (line 25)' panicked at 'couldn't compile the test', librustdoc/test.rs:306:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```

It would be nice to have some kind of explanation:
```
Documentation test have failed. Every code block (wrapped with ticks) in documentation is tested. To not test this code of block use "ignore" after the ticks. More info at: https://doc.rust-lang.org/stable/rustdoc/documentation-tests.html . Details about failed tests:
```
Repository: vscode
Issue: Expose `glyphMargin` support to extensions
Labels: feature-request,api

It would be great if extension were able to use the built-in glyphMargin decorations -- i.e. clickable decorations in the gutter.
Repository: kubernetes
Issue: kubelet should track tcp_mem stats also along with cpu/ram/disk
Labels: priority/backlog,sig/network,sig/node,kind/feature,triage/accepted

/kind feature
/sig node

**What happened**:

A program started leaking TCP memory, which filled up the node's TCP stack memory. The network performance on the node degraded and connections to pods running on the node either times out or will hang for a long time.

Node's `dmesg` had lines mentioning `TCP: out of memory -- consider tuning tcp_mem`

Further reading and investigation reveals that this could happen when TCP stack runs out of memory pages allocated by kernel or when there are lot of orphaned/open sockets.

TCP stack limits: max 86514

```bash
$  cat /proc/sys/net/ipv4/tcp_mem
43257	57676	86514
# min pressure max
```

Usage when issue happened: mem 87916

```
$ cat /proc/net/sockstat
sockets: used 1386
TCP: inuse 24 orphan 0 tw 58 alloc 863 mem 87916
UDP: inuse 3 mem 3
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0
```

kubelet posts node status as ready.

**What you expected to happen**:

kubelet should say node is not ready.

It would be great if `kubelet` could track the `tcp_mem` stats also along with CPU/RAM/disk as network is also an important factor. If `tcp_mem` limit is hit, for some reason, the node is not usable. Notifying the user that node has some issue can help debugging and further identifying the cause.

**How to reproduce it (as minimally and precisely as possible)**:

1. Create a GKE cluster
2. Label a node to carry out tests
  ```bash
  $ kubectl label node <node-name> node=leak-test
  ```
3. Create an nginx deployment with Loadbalancer, with can serve a large file
  ```bash
  $ kubectl create -f https://raw.githubusercontent.com/shahidhk/k8s-tcp-mem-leak/master/nginx.yaml
  ```
4. Check if you can download the large file
  ```bash
  $ curl -o large-file <ip>/large-file
  ```
5. Create a deployment that can fill up the TCP stack memory
  ```bash
  $ kubectl create -f https://raw.githubusercontent.com/shahidhk/k8s-tcp-mem-leak/master/leak-repro.yaml
  ```
6. SSH into the node and observe `cat /proc/sys/net/ipv4/tcp_mem` and `cat /proc/net/sockstat` and scale the deployment until the current mem exceeds the limit
7. Try downloading the large file again. It will either become very slow or will not happen at all

**Anything else we need to know?**:

This is more of a feature request for kubelet rather than a bug. TCP mem can get filled if the node is running a lot of TCP heavy workloads, need not necessarily be a leak. Since kubelet is ultimately responsible for reporting node's health, network should also be a parameter.

**Environment**:
- Kubernetes version (use `kubectl version`): `v1.9.6-gke.0`
- Cloud provider or hardware configuration: GKE, 1 node, n1-standard-1
- OS (e.g. from /etc/os-release): Container-Optimized OS
- Kernel (e.g. `uname -a`): 4.4.111+
- Install tools: -
- Others: -
Repository: rust
Issue: Error message about immutable binding is not actually caused by a binding
Labels: C-enhancement,A-diagnostics,P-medium,T-compiler,E-medium

See the following code:

```rust
use std::collections::HashMap;

struct Test {
    v: u32,
}

fn main() {
    let mut map = HashMap::new();
    map.insert("a", Test { v: 0 });

    let values = map.values();
    for mut t in values {
        t.v += 1;
    }
}
```

It raises this compiler error:

> error[E0594]: cannot assign to field `t.v` of immutable binding
  --> /tmp/test.rs:14:9
   |
14 |         t.v += 1;
   |         ^^^^^^^^ cannot mutably borrow field of immutable binding

The fix is to use `values_mut()` instead of `values()`.
But the error message is confusing as the problem here is not the binding as `t` itself is `mut` making it harder to debug for newcomers.
Repository: pytorch
Issue: [caffe2] ChannelShuffle example
Labels: caffe2,module: docs

Is there any example for the ChannelShuffle operator?

There is no doc right now.

I have a stack of v rgba images, where the alpha contain a mask. I would like to transform from:
rgbargbargba to rgbrgbrgbaaa so that my convolutions do not get messed up by the alpha.

Thanks,