提交 8c278a05 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

This should avoid SupportCodeErrors due to mismatching whitespace.

上级 9708b02d
......@@ -88,8 +88,8 @@ class GpuElemwise(HideC, Elemwise):
except MethodNotDefined:
pass
if (support_code != "#define THEANO_MACRO_MOD(x,y) (x % y)" and
support_code != ""):
if (support_code.strip() != "#define THEANO_MACRO_MOD(x,y) (x % y)" and
support_code.strip() != ""):
# The macro is fine, the C++ struct is not.
raise SupportCodeError(support_code)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论