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

fix the opt path create error in windows. #33853

Merged
merged 1 commit into from
Jul 1, 2021

Conversation

winter-wang
Copy link
Contributor

PR types

Bug fixes

PR changes

Others

Describe

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

@paddle-bot-old
Copy link

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

@Shixiaowei02 Shixiaowei02 merged commit e75b692 into PaddlePaddle:develop Jul 1, 2021
winter-wang added a commit to winter-wang/Paddle that referenced this pull request 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.

2 participants