提交 d35a3f83 authored 作者: Ian Goodfellow's avatar Ian Goodfellow

added spaces to comments in tensor/basic.py

上级 ea432825
...@@ -33,7 +33,7 @@ from elemwise import Elemwise, DimShuffle, CAReduce, Sum ...@@ -33,7 +33,7 @@ from elemwise import Elemwise, DimShuffle, CAReduce, Sum
import logging import logging
_logger = logging.getLogger("theano.tensor.basic") _logger = logging.getLogger("theano.tensor.basic")
#This is needed as we will hide it later # This is needed as we will hide it later
python_complex = complex python_complex = complex
python_any = any python_any = any
python_all = all python_all = all
...@@ -1967,7 +1967,7 @@ class ScalarFromTensor(Op): ...@@ -1967,7 +1967,7 @@ class ScalarFromTensor(Op):
scalar_from_tensor = ScalarFromTensor() scalar_from_tensor = ScalarFromTensor()
#to be removed as we get the epydoc routine-documenting thing going # to be removed as we get the epydoc routine-documenting thing going
#-JB 20080924 #-JB 20080924
def _conversion(real_value, name): def _conversion(real_value, name):
__oplist_tag(real_value, 'casting') __oplist_tag(real_value, 'casting')
...@@ -2735,7 +2735,7 @@ def sqr(a): ...@@ -2735,7 +2735,7 @@ def sqr(a):
"""square of a""" """square of a"""
#alias to sqr, included to maintain similarity with numpy interface # alias to sqr, included to maintain similarity with numpy interface
square = sqr square = sqr
...@@ -2878,7 +2878,7 @@ def complex_from_polar(abs, angle): ...@@ -2878,7 +2878,7 @@ def complex_from_polar(abs, angle):
########################## ##########################
#fill, _fill_inplace = _elemwise(scal.second, 'fill', # fill, _fill_inplace = _elemwise(scal.second, 'fill',
#"""fill WRITEME (elemwise)""") #"""fill WRITEME (elemwise)""")
@_scal_elemwise @_scal_elemwise
def second(a, b): def second(a, b):
...@@ -3314,7 +3314,7 @@ class Mean(elemwise.CAReduce): ...@@ -3314,7 +3314,7 @@ class Mean(elemwise.CAReduce):
*((double *)PyArray_DATA(%s)) /= PyArray_SIZE(%s); *((double *)PyArray_DATA(%s)) /= PyArray_SIZE(%s);
""" % (onames[0], inames[0]) """ % (onames[0], inames[0])
#TODO: implement the grad. When done and tested, you can make this the default # TODO: implement the grad. When done and tested, you can make this the default
# version. # version.
# def grad(self, (x,), (gout,)): # def grad(self, (x,), (gout,)):
# import pdb;pdb.set_trace() # import pdb;pdb.set_trace()
...@@ -6747,7 +6747,7 @@ def tensordot(x, y=None, axes=2): ...@@ -6747,7 +6747,7 @@ def tensordot(x, y=None, axes=2):
return tensordot.op[axes](x, y) return tensordot.op[axes](x, y)
#TODO: tensordot should be function as described in rst docs. # TODO: tensordot should be function as described in rst docs.
def outer(x, y): def outer(x, y):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论