Skip to content
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

[cherry-pick]fix the opt path create error in windows. (#33853) #33885

Merged

Conversation

winter-wang
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

Windows环境预测,trt 序列化和int8 校准,生成opt路径,会在__model__ 文件下创建目录,然后报错没有创建权限.
经检查,发现是因为在获取模型所在文件夹时,只去查找了模型文件路径的最后一个''字符,如果路径使用左斜杠进行分割的,就会出现此错误.
cherry-pick到release2.1分支。

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jul 1, 2021

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@Superjomn Superjomn merged commit 702610e into PaddlePaddle:release/2.1 Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants