提交 e0e08753 authored 作者: Frederic Bastien's avatar Frederic Bastien

Don't change the Op during c_code. The condition should always be False, but in case.

上级 e0665751
...@@ -972,8 +972,6 @@ using namespace std; ...@@ -972,8 +972,6 @@ using namespace std;
_debug("return unroll patch version. all_shape=", all_shape) _debug("return unroll patch version. all_shape=", all_shape)
return _conv_op_code_unroll_patch%d return _conv_op_code_unroll_patch%d
if self.unroll_batch>0 or self.unroll_kern>0: if self.unroll_batch>0 or self.unroll_kern>0:
if self.unroll_batch<=0: self.unroll_batch=1
if self.unroll_kern<=0: self.unroll_kern=1
if self.verbose: if self.verbose:
_debug("return unrolled batch (%s) and kern code (%s)", _debug("return unrolled batch (%s) and kern code (%s)",
str(self.unroll_batch), str(self.unroll_kern)) str(self.unroll_batch), str(self.unroll_kern))
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论