提交 45d67974 authored 作者: Frederic's avatar Frederic

Doc typo

上级 0a8c40bb
...@@ -786,6 +786,6 @@ Note ...@@ -786,6 +786,6 @@ Note
* See :ref:`example_other_random` to know how to handle random numbers * See :ref:`example_other_random` to know how to handle random numbers
on the GPU. on the GPU.
* The mode `FAST_COMPILE` disable c code, so also disable the GPU. You * The mode `FAST_COMPILE` disables C code, so also disables the GPU. You
can use the Theano flag optimizer='fast_compile' to speed up can use the Theano flag optimizer='fast_compile' to speed up
compilatino and keeping the GPU. compilation and keep the GPU.
...@@ -563,27 +563,26 @@ class Function(object): ...@@ -563,27 +563,26 @@ class Function(object):
Parameters Parameters
---------- ----------
share_memory : boolean share_memory : boolean
When True, two function share intermediate storages(storages except input and When True, two function share intermediate storages(storages except input and
output storages). Otherwise two functions will only share partial output storages). Otherwise two functions will only share partial
storages and same maker. If two functions share memory and storages and same maker. If two functions share memory and
allow_gc=False, this will increase executing speed and save memory. allow_gc=False, this will increase executing speed and save memory.
swap : dict swap : dict
Dictionary that map old SharedVariables to new Dictionary that map old SharedVariables to new
SharedVariables. Default is None. SharedVariables. Default is None.
NOTE: The shared variable swap in only done in the new returned NOTE: The shared variable swap in only done in the new returned
function, not in the user graph. function, not in the user graph.
delete_updates : boolean delete_updates : boolean
If True, Copied function will not have updates. If True, Copied function will not have updates.
name : string
name : string If provided, will be the name of the new
If provided, will be the name of the new Function. Otherwise, it will be old + " copy"
Function. Otherwise, it will be old + " copy"
profile :
profile : as theano.function profile parameter
as theano.function profile parameter
Returns Returns
------- -------
......
...@@ -473,9 +473,8 @@ class Variable(Node): ...@@ -473,9 +473,8 @@ class Variable(Node):
the scenes. Subsequent calls to :func:`eval` on that same variable the scenes. Subsequent calls to :func:`eval` on that same variable
will be fast, because the variable caches the compiled function. will be fast, because the variable caches the compiled function.
This way of computing have more overhead then a normal Theano This way of computing has more overhead than a normal Theano
function, so don't use it too much in real script. But is function, so don't use it too much in real scripts.
useful for interactive session and quick experiments.
""" """
if inputs_to_values is None: if inputs_to_values is None:
......
...@@ -212,7 +212,6 @@ class BlockSparse_Gemv_and_Outer(unittest.TestCase): ...@@ -212,7 +212,6 @@ class BlockSparse_Gemv_and_Outer(unittest.TestCase):
def op(b, h, W): def op(b, h, W):
return self.gemv_op(b.take(oIdx, axis=0), W, h, iIdx, oIdx) return self.gemv_op(b.take(oIdx, axis=0), W, h, iIdx, oIdx)
eps = 3e-4
eps = 3e-3 eps = 3e-3
utt.verify_grad(metaop, [b_val, h_val, W_val], mode=self.mode, eps=eps) utt.verify_grad(metaop, [b_val, h_val, W_val], mode=self.mode, eps=eps)
utt.verify_grad(op, [b_val, h_val, W_val], mode=self.mode, eps=eps) utt.verify_grad(op, [b_val, h_val, W_val], mode=self.mode, eps=eps)
......
...@@ -316,7 +316,7 @@ theano.compile.optdb['uncanonicalize'].register("local_hard_sigmoid", ...@@ -316,7 +316,7 @@ theano.compile.optdb['uncanonicalize'].register("local_hard_sigmoid",
class ScalarSoftplus(scalar.UnaryScalarOp): class ScalarSoftplus(scalar.UnaryScalarOp):
""" """
This help numerical stability. This helps numerical stability.
""" """
@staticmethod @staticmethod
def static_impl(x): def static_impl(x):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论