We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
F.grid_sample
F.grid_sample(..., align_corners=True, mode='bilinear', padding_mode='zeros')
Paddle/python/paddle/nn/functional/vision.py
Lines 305 to 328 in 530deb1
import paddle paddle.set_device("gpu") a = paddle.rand((10, 3, 256, 256)) b = paddle.rand((10, 256, 256, 2)) c = paddle.rand((2, 2)) print(c.astype('float32')) d = paddle.nn.functional.grid_sample(a, b, mode='bilinear', padding_mode='zeros', align_corners=True) print(c.astype('float32')) # 此时可正常输出 # 若此时进入函数,在320行前令use_cudnn=True,则无报错 d = paddle.nn.functional.grid_sample(a, b, mode='bilinear', padding_mode='reflection', align_corners=True) print(c.astype('float32')) # 此时报错
-------------------------------------- C++ Traceback (most recent call last): -------------------------------------- 0 paddle::imperative::Tracer::TraceOp(std::string const&, paddle::imperative::NameVarBaseMap const&, paddle::imperative::NameVarBaseMap const&, paddle::framework::AttributeMap) 1 paddle::platform::EnforceNotMet::EnforceNotMet(paddle::platform::ErrorSummary const&, char const*, int) 2 paddle::platform::GetCurrentTraceBackString[abi:cxx11]() ---------------------- Error Message Summary: ---------------------- FatalError: Operator cast raises an thrust::system::system_error exception. The exception content is :parallel_for failed: cudaErrorInvalidConfiguration: invalid configuration argument. (at /paddle/paddle/fluid/imperative/tracer.cc:89)
The text was updated successfully, but these errors were encountered:
你好,感谢反馈。已转交给内部相关同学
Sorry, something went wrong.
Are you satisfied with the resolution of your issue?
YES No
wanghaoshuang
Successfully merging a pull request may close this issue.
1)PaddlePaddle版本:2.0.0rc
2)CPU:aistudio-gpu
3)GPU:aistudio-gpu
4)系统环境:aistudio
错误仅在在gpu动态图下发生,cpu时未发生错误:
F.grid_sample
在特定条件下执行后,函数可以正常执行,但之后对任何变量进行astype()操作均会报错(可能运行其他op也会出错)。经检查后发现,gpu下只要这段代码中的use_cudnn=False,则会出现错误。
具体来说,只有
F.grid_sample(..., align_corners=True, mode='bilinear', padding_mode='zeros')
才不会报错。错误发生时内存和显存占用极低,令人疑惑。
Paddle/python/paddle/nn/functional/vision.py
Lines 305 to 328 in 530deb1
The text was updated successfully, but these errors were encountered: