Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Some cleanup in partial plugin#17423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hauntsaninja merged 2 commits intopython:masterfromilevkivskyi:partial-unpack
Jun 22, 2024

Conversation

@ilevkivskyi
Copy link
Member

Fixes#17405

Apart from fixing the crash I fix two obvious bugs I noticed while making this PR.

cc@hauntsaninja

@github-actions
Copy link
Contributor

Diff frommypy_primer, showing the effect of this PR on open source code:

jax (https://github.com/google/jax)- jax/_src/nn/functions.py:585: error: Argument 1 to "custom_jvp" has incompatible type "Callable[[Array | Any | Any | Any | bool | int | float | complex, int | tuple[int, ...] | None, Array | Any | Any | Any | bool | int | float | complex | None, Array | Any | Any | Any | bool | int | float | complex | None], Array]"; expected "Callable[..., Never]"  [arg-type]- jax/_src/scipy/special.py:1059: error: Argument 1 to "custom_jvp" has incompatible type "Callable[[Array | Any | Any | Any | bool | int | float | complex, int], Array]"; expected "Callable[..., Never]"  [arg-type]- jax/experimental/rnn.py:245: error: Argument 1 to "custom_vjp" has incompatible type "Callable[[Array, Array, Array, Array, Array, int, int, int, float, bool, str | Precision | tuple[str, str] | tuple[Precision, Precision] | None], tuple[Array, Array, Array]]"; expected "Callable[..., Never]"  [arg-type]+ jax/_src/scipy/stats/norm.py:161: error: Redundant cast to "Array"  [redundant-cast]- jax/_src/cudnn/fused_attention_stablehlo.py:1000: error: Need type annotation for "output"  [var-annotated]- jax/experimental/pallas/ops/tpu/flash_attention.py:1579: error: Need type annotation for "res"  [var-annotated]pwndbg (https://github.com/pwndbg/pwndbg)- pwndbg/gdblib/events.py:160: error: Need type annotation for "before_prompt"  [var-annotated]

Copy link
Collaborator

@hauntsaninjahauntsaninja left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks, I was just looking into this, had pretty similar diff. There's one more bug in my implementation, I will merge this and add the additional fix

@hauntsaninjahauntsaninja merged commit9012fc9 intopython:masterJun 22, 2024
@ilevkivskyiilevkivskyi deleted the partial-unpack branchJune 22, 2024 22:10
@ilevkivskyi
Copy link
MemberAuthor

Yes, I also have#17424, andmaybe one more.

hauntsaninja added a commit that referenced this pull requestJul 1, 2024
- Fixes another crash case / type inference in that case- Fix a false positive when calling the partially applied function withkwargs- TypeTraverse / comment / daemon test follow up ilevkivskyi mentionedon the original PRSee also#17423
hauntsaninja added a commit that referenced this pull requestJul 1, 2024
- Fixes another crash case / type inference in that case- Fix a false positive when calling the partially applied function withkwargs- TypeTraverse / comment / daemon test follow up ilevkivskyi mentionedon the original PRSee also#17423
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@hauntsaninjahauntsaninjahauntsaninja approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Crash with functools.partial and Unpack

2 participants

@ilevkivskyi@hauntsaninja

[8]ページ先頭

©2009-2025 Movatter.jp