sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: tensorflow
Issue: Adding TensorFlow Hub KerasLayer to Sequential Model Raises ValueError
Labels: type:bug,comp:keras,awaiting PR merge,TF 2.16

### Issue type

Bug

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

Yes

### Source

source

### TensorFlow version

2.16.1

### Custom code

No

### OS platform and distribution

Ubuntu 22.04.3 LTS

### Mobile device

_No response_

### Python version

Python 3.11.0rc1

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

12.3.0

### GPU model and memory

_No response_

### Current behavior?

I can execute the following code without any issues in TensorFlow 2.15.0 and TensorFlow Hub 1.16.1. However, when I upgrade the TensorFlow version to 2.16.0 or above, I encounter an error stating that `KerasLayer` cannot be added to the Sequential model.

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import tensorflow_hub as hub

image_size = 224
URL = "https://tfhub.dev/tensorflow/efficientnet/b0/feature-vector/1"

model = tf.keras.Sequential([
        hub.KerasLayer(URL, input_shape=(image_size, image_size, 3))
])
```


### Relevant log output

```shell
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[29], line 1
----> 1 model = tf.keras.Sequential([
      2         feature_extractor,
      3         tf.keras.layers.Dense(2, activation = 'softmax')
      4 ])
      6 model.build([None, image_size, image_size, 3])
      7 model.summary()

File /usr/local/lib/python3.10/dist-packages/keras/src/models/sequential.py:70, in Sequential.__init__(self, layers, trainable, name)
     68 if layers:
     69     for layer in layers:
---> 70         self.add(layer, rebuild=False)
     71     self._maybe_rebuild()

File /usr/local/lib/python3.10/dist-packages/keras/src/models/sequential.py:92, in Sequential.add(self, layer, rebuild)
     90         layer = origin_layer
     91 if not isinstance(layer, Layer):
---> 92     raise ValueError(
     93         "Only instances of `keras.Layer` can be "
     94         f"added to a Sequential model. Received: {layer} "
     95         f"(of type {type(layer)})"
     96     )
     97 if not self._is_layer_name_unique(layer):
...
    101         "the name of a layer in this model. Update the `name` argument "
    102         "to pass a unique name."
    103     )

ValueError: Only instances of `keras.Layer` can be added to a Sequential model. Received: <tensorflow_hub.keras_layer.KerasLayer object at 0x7a4ac7e30f40> (of type <class 'tensorflow_hub.keras_layer.KerasLayer'>)
```
Repository: go
Issue: proposal: log/slog: GroupAttrs(key, attrs....[]Attr) Attr
Labels: Proposal

### Proposal Details

```go
func GroupAttrs(key, attrs....[]Attr) Attr
```

I propose the addition of the above function to allow for the type safe construction of Group attributes.

The existing signature works if you know the list of attributes to use upfront:

```go
// Works
g := slog.Group("key",
        slog.String("key-1", "a"),
        slog.Int("key-2", 2),
)
```

but less well if you need to construct the group members beforehand.

```go
// maybe constructed
attrs := []slog.Attr{
        slog.String("key-1", "a"),
}
if x {
        attrs = append(attrs, slog.Int("key-2", 2))
}

// Doesn't work, []slog.Attr doesn't match []any
g := slog.Group("key", attrs...)
```

Existing code generally appears to use one of the 3 options from below,
in ascending order of popularity.

```go
// Option 1: Unintuitive group construction
g := slog.Any("key", slog.GroupValue(attrs...))

// Option 2: convert to []any with a helper func
g := slog.Group("key", attr2any(attrs)...)

// Option 3: just use []any
var attrs []any
...
g := slog.Group("key", attrs...)
```

This appears to be the only gap in slog's exposed api where `any` is unavoidable,
and can't be escaped by using an alternate frontend (replace `slog.Logger` with something else while keeping `slog.Handler`) because Attrs are how key-value pairs are communicated to handlers.

cc @jba
Repository: excalidraw
Issue: Add an architecture.md or other guidance on how the code is structured
Labels: documentation

**Story:** As a developer and potential contributor, I want to understand how Excalidraw works and how its source code is structured

**Current State:** There is the [development guide](https://docs.excalidraw.com/docs/introduction/development), but it does not include help to understand the code. 

**Potential Solution:** 
* Give a general overview of the code: Which parts depend on each other and which files are in which folder?
* Give some guidance of where to start reading the code.
* Give some insight in how some basic operations work – e.g. moving an element on canvas, executing a distribute command and importing an image from the clipboard. 

**Links/Prior Art/Inspiration**
* On having an [architecture.md](https://matklad.github.io/2021/02/06/ARCHITECTURE.md.html)
* https://aosabook.org/en/index.html describes architectures of  open source applications 
* Architecture of [HotDraw](https://riehle.org/computer-science/research/dissertation/chapter-8.html)
Repository: tauri
Issue: [ios] enable specific framework usage
Labels: type: feature request,type: question,platform: iOS

I am trying to build an ios version of my tauri app, which uses https://docs.rs/system-configuration. This fails with 

```
Undefined symbols for architecture arm64:
  "_SCDynamicStoreCopyProxies", referenced from:
      system_configuration::dynamic_store::SCDynamicStore::get_proxies::h2d6ce7ba00ed1fce in libapp.a(system_configuration-07ca0bebaffd1b05.system_configuration.61a651945613f0b0-cgu.0.rcgu.o)
<...>
```

because the system configuration framework needs to be enabled when linking. I have not found a way to do this though through the configuration. Any pointers would be appreciated.
Repository: godot
Issue: On Windows 11 Any project on Godot has constant frame spikes after same time, even if it's exported
Labels: platform:windows,discussion,needs testing,performance

### Tested versions

Reproducable in: v4.2.1.stable.official [b09f793f5], v4.3.dev4.official.df78c0636

### System information

Godot v4.2.1.stable - Windows 11 23H2 - Any Renderer - dedicated AMD Radeon RX 6800 XT (Advanced Micro Devices, Inc.; 31.0.24019.1006) - AMD Ryzen 5 7600 6-Core Processor (12 Threads)

### Issue description

Any project that i Run on Godot has this issue when i run it on Windows 11, & I know it's issue with Windows 11 because my system has dual-boot with Linux & Windows 11, on Linux no frame spikes happen at all, gameplay is buttery smooth, but if you run the project on Windows 11, it has significant frame spikes

I discovered that this is Issue with Windows 11 because I even tried to use Windows 11 on my external Nvme drive by making "Windows to go" installation, even on that installation of Windows 11 I still have frame spikes on Godot game engine, it's likely that this issue is tied to this OS, frame spikes happen in any renderer, regardless if project is 2D or 3D, even if you export it! i even exported it with DX12, it doesn't fix the frame spikes

no fixes worked, I enabled verbose stdout, it doesn't fix the issue, I tried to use "Windows 8" compatibility mode, it didn't fix the issue, I enabled/disabled Vsync & used different Vsync modes, I even disabled vsync , only once enabling vsync in Godot & disabling Radeon anti-lag & setting "wait for vertical refresh" to "off unless application specifies" in AMD software fixed the frame spikes, but it's not a fix, after restarting project some of times frame spikes appeared again, even if I enabled Vsync mode that had no frame spikes & use same settings in AMD software, they reappeared

also for some reason when i click "Copy System Info" in "help tab" it specifies "Windows 10.0.22631" as OS instead of "Windows 11", despite compatibility mode not being enabled for Godot

here are how the frame spikes look like: 
![image](https://github.com/godotengine/godot/assets/44000381/63efabd3-9ec9-4d9e-9a30-cd32ca1f4d90)

### Steps to reproduce

Just make or import any project & run it on windows 11

### Minimal reproduction project (MRP)

[lag_spike_test.zip](https://github.com/godotengine/godot/files/14627417/lag_spike_test.zip)
Repository: ui
Issue: [Bug]: getFieldState imported from incorrect module
Labels: bug

### Describe the bug

The current implementation of the form UI module incorrectly imports the getFieldState function from the useFormContext module instead of the useForm module. This leads to a runtime error where getFieldState is undefined, causing the form functionality to break. The correct approach should be to import getFieldState from the useForm module to ensure proper functionality of the form component.

### Affected component/components

Self created from component with shadcn-ui and react-hook-form 

### How to reproduce

1. Clone the repository containing the ui.shadcn.com project.
2. Navigate to the components/ui/form.jsx file within the project directory.
3. Observe the import statement for the getFieldState function.
4. Note that getFieldState is imported from the useFormContext module instead of useForm.
5. Start the development environment of the ui.shadcn.com project.
6. Access any page or component that utilizes the form UI component.
7. Attempt to interact with the form, such as submitting it or entering data.
8. Observe the runtime error indicating that getFieldState is not a function.
9. Notice that the form functionality is broken due to the undefined getFieldState function.
10. Confirm the bug by verifying that the form component fails to function properly due to the incorrect import of getFieldState.

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
Browser: Brave
Operating System: Windows 11
Node.js: 18.17.1
Package Manager: 10.2.4
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: transformers
Issue: mamba generation throughput lower than original due to DecodingCGCache
Labels: Feature request,Good Difficult Issue,Compilation

### System Info

Python 3.10.13, CUDA 12.1
GPU = NVIDIA GeForce RTX 2080 Ti. Max memory = 10.747 GB.

torch==2.2.1
torchaudio==2.1.0
torchvision==0.16.0
tokenizers==0.15.2
transformers ==git+https://github.com/huggingface/transformers@dd1c9052159ae824c8acef7c2552f9fad5ca020a
triton==2.2.0
causal_conv1d==git+https://github.com/Dao-AILab/causal-conv1d.git@96456720c00393a5c32872d8352d7a7ec31fb3db#egg=causal_conv1d
mamba_ssm==git+https://github.com/state-spaces/mamba.git@9127d1f47f367f5c9cc49c73ad73557089d02cb8#egg=mamba_ssm

### Who can help?

text models: @ArthurZucker and @younesbelkada
generate: @gante

### Information

- [X] The official example scripts
- [X] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

The key model initialization and generation parts are given as below.

## Original code repo
In the original [code repo](https://github.com/state-spaces/mamba/blob/main/benchmarks/benchmark_generation_mamba_simple.py)

```
from mamba_ssm.models.mixer_seq_simple import MambaLMHeadModel
model = MambaLMHeadModel.from_pretrained("state-spaces/mamba-130m")
model.eval()

model.generate(
        input_ids=input_ids,
        max_length=max_length,
        **cg=True**
    )
```
Then throughput for generating 1K length is
```
Number of parameters: 129135360
Prompt length: 100, generation length: 1000
Prompt processing + decoding time: 1011 ms
```

## Using the HF library
```
from transformers import MambaForCausalLM
model = MambaForCausalLM.from_pretrained("state-spaces/mamba-130m-hf")
model.eval()

model.generate(
        input_ids=input_ids,
        max_length=max_length
    )
```
Then throughput for generating 1K length is
```
Number of parameters: 129135360
Prompt length: 100, generation length: 1000
state-spaces/mamba-130m-hf prompt processing + decoding time: 15970ms
```


### Expected behavior

The "cg=True" is [confirmed to be the part has a significant impact on the generation performance](https://github.com/state-spaces/mamba/issues/90) for mamba.

I have tried:

1. Passing the "use_cache=True" as follows won't affect the results
```
model = MambaForCausalLM.from_pretrained("state-spaces/mamba-130m-hf", use_cache=True)
or
model = MambaForCausalLM.from_pretrained("state-spaces/mamba-130m-hf", cache_params={use_cache: True})
or
model.config.use_cache=True
```

2. Modifying the mamba model to force the argument "use_cache=True" in the [MambaModel](https://github.com/huggingface/transformers/blob/main/src/transformers/models/mamba/modeling_mamba.py), but still not working.


I assume this is related to the #29605, but modifying the argument directly seems not solving the problem.
Repository: ollama
Issue: Enhance Chat History Logging for API Interactions on Windows Deployment
Labels: feature request

### What are you trying to do?

I've deployed Ollama on a Windows 10 server to make the API available within a local network. I've observed that the `.ollama/history` directory only records local command-line interactions, not capturing chats initiated over the network.

### How should we solve this?

A unified logging system should be implemented that captures both prompts and responses for all interactions, regardless of whether they are initiated locally or over the network. This change would eliminate the need to enable debugging options for basic chat history logging.

### What is the impact of not solving this?

The current limitation impacts the ability to audit and review interactions comprehensively, raising privacy concerns, especially when private information is shared via API chats. I'm currently relying on the partial logs available and manually enabling `OLLAMA_DEBUG=1` to track prompts without responses, which is not ideal.

### Anything else?

This issue stems from the discussions in this [Discord link](https://discordapp.com/channels/1128867683291627614/1218857328728608921).
Repository: ui
Issue: [Bug]: TypeError with Drawer component in @types/react v. 18.2.66
Labels: bug

### Describe the bug

Something has changed for React types, making upgrading to the latest @types/react not work with the Drawer Component.

```
const DrawerTitle = React.forwardRef<
  React.ElementRef<typeof DrawerPrimitive.Title>,
  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title>
>

```


### Affected component/components

Drawer

### How to reproduce

1. Create new react app with TypeScript
2. Update the @types/react package to latest version (18.2.66)
3. Use CLI or manually install Drawer component
4. See type errors

### Codesandbox/StackBlitz link

_No response_

### Logs

_No response_

### System Info

```bash
N/A
```


### Before submitting

- [X] I've made research efforts and searched the documentation
- [X] I've searched for existing issues
Repository: PowerToys
Issue: PowerToys PowerRename has stopped working.
Labels: Issue-Bug,Product-PowerRename,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

PowerRename

### Steps to reproduce

[PowerToysReport_2024-03-18-01-15-42.zip](https://github.com/microsoft/PowerToys/files/14628054/PowerToysReport_2024-03-18-01-15-42.zip)

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

_No response_

### Other Software

_No response_
Repository: ollama
Issue: Completely disable logging on server with env variable
Labels: feature request

### What are you trying to do?

For maximum privacy, it would be nice to be able to disable logging completely

### How should we solve this?

Setting an env variable that sets the logging level to none, so absolutely no logs are being outputted

### What is the impact of not solving this?

None, it’s just a nice addition for privacy reasons in case ollama is being stored in a shared server

### Anything else?

_No response_
Repository: godot
Issue: Project setting added via GUI is removed when reset to default
Labels: bug,topic:editor

### Tested versions

Found as far back as 4.1.1 - couldn't test any earlier version (editor froze when opening any dropdown menu, old Wayland problems maybe, doesnt matter)

### System information

Godot v4.3.dev5 - EndeavourOS SMP PREEMPT_DYNAMIC Fri, 08 Mar 2024 01:59:01 +0000 - Wayland - Vulkan (Forward+) - integrated AMD Radeon Graphics (RADV RENOIR) () - AMD Ryzen 7 5825U with Radeon Graphics (16 Threads)

### Issue description

Project settings created manually within the settings menu will be removed when reset to their default value

### Steps to reproduce

When creating a custom project setting (using the project settings dialogue), it will show up as not being at its default value (which is weird because it actually is, in theory) - see image 1. 

![image](https://github.com/godotengine/godot/assets/8989002/3c96a238-dbe9-43af-9f6e-56cac0033575)

Then, resetting it to the default will cause it to be deleted from the project settings, with the editor printing a few copies of the same warning:
`core/config/project_settings.cpp:352 - Property not found: x/y`
where `x/y` is whatever path was chosen for the setting:

![image](https://github.com/godotengine/godot/assets/8989002/b5b8457c-6d43-4a88-a7c2-a0c4d8b332ef)

However, it will still show up in the settings GUI until it is closed and reopened:

![image](https://github.com/godotengine/godot/assets/8989002/0b366e91-ab2e-458b-970f-6f01d839bcf9)


### Minimal reproduction project (MRP)

Basically impossible to have an MRP, as the whole bug is something being unexplicably deleted. A completely empty project suffices.
Repository: godot
Issue: get_overlapping_areas() can`t detect resumed Area2D from pause.
Labels: bug,topic:physics,topic:2d

### Tested versions

4.2.1.stable, 4.3.dev5

### System information

win11

### Issue description

Area.get_overlapping_areas() can`t detect resumed Area2D from pause. Where Area2D disable mode is set to remove, pause by setting process_mode to disable. 

### Steps to reproduce

make a scene like this 

![image](https://github.com/godotengine/godot/assets/91177204/ed4dab68-47d3-4ab6-9c5e-e86575f7fe4e)
```

extends Node2D

@onready var area_2d = $Area2D
@onready var area_2d_2 = $Area2D2

func _ready():
	print("timer 0.2")
	await get_tree().create_timer(0.2).timeout
	print("area_2d overlap")
	print(area_2d.get_overlapping_areas())
	print("timer 0.2")
	await get_tree().create_timer(0.2).timeout
	print("pasue area2")
	area_2d_2.process_mode = Node.PROCESS_MODE_DISABLED
	print("timer 0.2")
	await get_tree().create_timer(0.2).timeout
	print("area_2d overlap")
	print(area_2d.get_overlapping_areas())
	print("resume area2")
	area_2d_2.process_mode = Node.PROCESS_MODE_INHERIT
	print("timer 0.2")
	await get_tree().create_timer(0.2).timeout
	print("area_2d overlap")
	print(area_2d.get_overlapping_areas())
	print("move area_2d2 Vector2.RIGHT * 0.1")
	area_2d_2.position += Vector2.RIGHT * 0.1
	print("timer 0.2")
	await get_tree().create_timer(0.2).timeout
	print("area_2d overlap")
	print(area_2d.get_overlapping_areas())
```
output
![image](https://github.com/godotengine/godot/assets/91177204/a3b4d3c7-d86d-40cb-89a0-4846f9101979)
The area_2d_2 is detected after its position changes.

### Minimal reproduction project (MRP)

[BugArea2d.zip](https://github.com/godotengine/godot/files/14628142/BugArea2d.zip)
Repository: vscode
Issue: I can't rename my file types or create files
Labels: bug,file-explorer,confirmation-pending

Type: <b>Bug</b>

So recently I haven't been able to rename new files. I can create them but whenever I try to rename it example: "index.html". I can't even type that in. I don't understand why it's not working now. 
![image](https://github.com/microsoft/vscode/assets/155126975/bfc92f53-f8a1-449e-a064-8747ce058c51)


VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 7535HS with Radeon Graphics         (12 x 3294)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|15.21GB (6.04GB free)|
|Process Argv|--crash-reporter-id 24effb4a-a3ce-422e-ad80-bbc2ffed2bff|
|Screen Reader|yes|
|VM|0%|
</details>Extensions: none<details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30986170
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
pydisww2:30991134
cppperfnew:30979542
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
dsvsc020:30976470
jchc7451:30973076
7ghi1836:30988842

```

</details>

<!-- generated by issue reporter -->
Repository: tensorflow
Issue: tf.linalg.svd([inf, -inf]) throws internal error logs to the console, and generates inconsistent results on different dtypes.
Labels: stat:awaiting tensorflower,type:bug,comp:ops,TF 2.15

### Issue type

Bug

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

Yes

### Source

binary

### TensorFlow version

tf 2.15.0

### Custom code

Yes

### OS platform and distribution

Linux-5.14.0-362.18.1.el9_3.x86_64-x86_64-with-glibc2.34

### Mobile device

AlmaLinux 9

### Python version

3.9

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

An internal error log was thrown to the console.
Also, we found that API generates inconsistent results on different input dtypes.
The same error log has appeared in #56204, but I am not sure whether we are talking about the same problem.


### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import numpy as np

input = tf.constant([[np.inf, -np.inf]], dtype=tf.complex64)
out = tf.linalg.svd(input, full_matrices=False, compute_uv=False) # 0

input = tf.constant([[np.inf, -np.inf]], dtype=tf.float64)
out = tf.linalg.svd(input, full_matrices=False, compute_uv=False) # nan
```


### Relevant log output

```shell
2024-03-18 02:28:14.593059: E ./tensorflow/core/kernels/linalg/svd_op_impl.h:110] Eigen::BDCSVD failed with error code 3
```