提交 d1e6d0e5 authored 作者: ASalvail's avatar ASalvail

Fixes a crash of casting bytes to Python string

The crash happened when cuDNN isn't used and the error message was raised. However, the message was a 'bytes' object, not a string. Casting the bytes to string solves the issue.
上级 b6410099
......@@ -56,7 +56,7 @@ if ((err = cudnnCreate(&_handle)) != CUDNN_STATUS_SUCCESS) {
else:
dnn_available.msg = (
"Theano is not able to use cuDNN. We got this error: \n" +
err)
str(err))
return dnn_available.avail
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论