Skip to content

Comments

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

Closed
ooooo-create wants to merge 2 commits intoPaddlePaddle:developfrom
ooooo-create:fix_PySafeSlice_win
Closed

Fix bug when get shape attribute for PySafeSlice in Windows#10924
ooooo-create wants to merge 2 commits intoPaddlePaddle:developfrom
ooooo-create:fix_PySafeSlice_win

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

@paddle-bot
Copy link

paddle-bot bot commented Aug 11, 2025

Thanks for your contribution!

@ooooo-create ooooo-create deleted the fix_PySafeSlice_win branch September 29, 2025 09:54
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