提交 1bb32e89 authored 作者: Caglar's avatar Caglar

revert back the changes on the ShapeFeature class.

上级 248bb200
...@@ -1117,7 +1117,7 @@ class ShapeFeature(object): ...@@ -1117,7 +1117,7 @@ class ShapeFeature(object):
# But we never timed this speed optimization! # But we never timed this speed optimization!
self.lscalar_one.equals(shape_vars[i]) or self.lscalar_one.equals(shape_vars[i]) or
self.lscalar_one.equals( self.lscalar_one.equals(
T.extract_constant(shape_vars[i], only_process_constants=True)) T.extract_constant(shape_vars[i]))
for i in xrange(r.ndim)]) for i in xrange(r.ndim)])
self.shape_of[r] = tuple(shape_vars) self.shape_of[r] = tuple(shape_vars)
for sv in shape_vars: for sv in shape_vars:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论