提交 07a20a71 authored 作者: Frédéric Bastien's avatar Frédéric Bastien

Merge pull request #2093 from nouiz/doc

Doc
......@@ -188,7 +188,7 @@ import theano and print the config variable, as in:
String value: either 'ignore', 'warn', 'raise' or 'pdb'
Default: 'float64'
Default: 'ignore'
When creating a TensorVariable with dtype float64, what should be done?
This is useful to help find upcast to float64 in user code.
......
......@@ -663,7 +663,10 @@ class Op(utils.object2, PureOp, CLinkerOp):
if len(self.__props__) == 0:
return "%s" % (self.__class__.__name__,)
else:
return "%s{%s}" % (self.__class__.__name__, ", ".join("%s=%r" % (p, getattr(self, p)) for p in self.__props__))
return "%s{%s}" % (
self.__class__.__name__,
", ".join("%s=%r" % (p, getattr(self, p))
for p in self.__props__))
else:
return super(Op, self).__str__()
......
......@@ -852,8 +852,11 @@ class GpuCorrMM(BaseGpuCorrMM):
class GpuCorrMM_gradWeights(BaseGpuCorrMM):
"""Gradient wrt. filters for `GpuCorrMM`.
:note: You will not want to use this directly, but rely on Theano's
automatic differentiation or graph optimization to use it as needed."""
:note: You will not want to use this directly, but rely on
Theano's automatic differentiation or graph optimization to
use it as needed.
"""
def __init__(self, border_mode="valid",
subsample=(1, 1),
......@@ -906,8 +909,11 @@ class GpuCorrMM_gradWeights(BaseGpuCorrMM):
class GpuCorrMM_gradInputs(BaseGpuCorrMM):
"""Gradient wrt. inputs for `GpuCorrMM`.
:note: You will not want to use this directly, but rely on Theano's
automatic differentiation or graph optimization to use it as needed."""
:note: You will not want to use this directly, but rely on
Theano's automatic differentiation or graph optimization to
use it as needed.
"""
def __init__(self, border_mode="valid",
subsample=(1, 1),
......
......@@ -155,7 +155,7 @@ class Solve(Op):
self.overwrite_b = overwrite_b
def __repr__(self):
return 'Solve{%s}' % str(self.props())
return 'Solve{%s}' % str(self._props())
def make_node(self, A, b):
assert imported_scipy, (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论