提交 d8e7531e authored 作者: Frederic's avatar Frederic

small fix from code review

上级 77d2f918
......@@ -476,7 +476,7 @@ work on the CPU and GPU. CURAND only work on the GPU.
.. code-block:: python
from theano.sandbox.rng_mrg import MRG_RandomStreams
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
.. _logistic_regression:
......
......@@ -74,7 +74,6 @@ def alpha_merge(cls, alpha_in, beta_in, nd):
return None
inputs = list(targ.inputs)
try:
raise NotScalarConstantError()
c = get_scalar_constant_value(lr)
if c == 0:
inputs[alpha_in] = lr
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论