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

small opt, remove a useless copy.

上级 48727221
...@@ -1674,7 +1674,7 @@ def verify_grad(fun, pt, n_tests=2, rng=None, eps=None, ...@@ -1674,7 +1674,7 @@ def verify_grad(fun, pt, n_tests=2, rng=None, eps=None,
return np.array(plain, o_output.dtype) return np.array(plain, o_output.dtype)
return plain return plain
t_r = shared(random_projection()) t_r = shared(random_projection(), borrow=True)
t_r.name = 'random_projection' t_r.name = 'random_projection'
# random projection of o onto t_r # random projection of o onto t_r
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论