Skip to content

Fix bug when get shape attribute for PySafeSlice in Windows #10924

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

ooooo-create
Copy link
Contributor

@ooooo-create ooooo-create commented Aug 11, 2025

Before submitting

  • Lint code. If there are lint issues, please format the code first.
# Install and register `pre-commit` in the project folder
pip install pre-commit && pre-commit install

# Process previous code files separately
pre-commit run --file XXXX.py
  • Add test cases into tests folder. If there are codecov issues, please add tests cases first.

PR types

Bug fixes

PR changes

Others

Description

same as PaddlePaddle/PaddleFormers#2440
Window 下使用的是 safetensors package,没有 shape 这个属性,Linux 下使用的是 paddlenlp\utils\safetensors.py 自己实现的是有的

Also some issues about it
#10758
#10881

Copy link

paddle-bot bot commented Aug 11, 2025

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants