• Pascal Lamblin's avatar
    Remove tensor.__getslice__ to avoid sys.maxsize · e9073c35
    Pascal Lamblin 提交于
    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.
    e9073c35
名称
最后提交
最后更新
benchmark 正在载入提交数据...
bin 正在载入提交数据...
doc 正在载入提交数据...
theano 正在载入提交数据...
.gitignore 正在载入提交数据...
DESCRIPTION.txt 正在载入提交数据...
EMAIL.txt 正在载入提交数据...
HISTORY.txt 正在载入提交数据...
LICENSE.txt 正在载入提交数据...
MANIFEST.in 正在载入提交数据...
NEWS.txt 正在载入提交数据...
README.txt 正在载入提交数据...
Theano.pyproj 正在载入提交数据...
Theano.sln 正在载入提交数据...
distribute_setup.py 正在载入提交数据...
setup.cfg 正在载入提交数据...
setup.py 正在载入提交数据...