提交 118aad4a authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Remove useless comment.

上级 bfb16ad4
...@@ -347,15 +347,7 @@ class _tensor_py_operators: ...@@ -347,15 +347,7 @@ class _tensor_py_operators:
def astype(self, dtype): def astype(self, dtype):
return theano.tensor.cast(self, dtype) return theano.tensor.cast(self, dtype)
# SLICING # SLICING/INDEXING
# Do not define __getslice__ here:
# When calling t[1:], for instance, the arguments passed to __getslice__
# are (1, sys.maxsize), which is a pain to deal with, and can even not be
# an int (but a long).
# If __getslice__ does not exist, __getitem__ is called instead, with
# argument slice(1, None, None), which is much more desirable.
# __getslice__ is deprecated in python 2.6 anyway.
def __getitem__(self, args): def __getitem__(self, args):
if not isinstance(args, tuple): if not isinstance(args, tuple):
args = args, args = args,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论