提交 6b58df5c authored 作者: Frederic Bastien's avatar Frederic Bastien

revert a recent change that broke the Deep Learning Tutorial.

上级 434b03b3
...@@ -1716,6 +1716,9 @@ class GpuSubtensor(tensor.Subtensor): ...@@ -1716,6 +1716,9 @@ class GpuSubtensor(tensor.Subtensor):
if len(cdata) == 1: if len(cdata) == 1:
cdata = cdata[0] cdata = cdata[0]
out[0] = x.__getitem__(cdata)
return #THE FOLLOWING FIX BROKE THE BUILDBOT
# some numpy installations don't expose the __index__() methods for # some numpy installations don't expose the __index__() methods for
# numpy.int8/16/32/64. Casting to python's int instead # numpy.int8/16/32/64. Casting to python's int instead
start = int(cdata.start) if cdata.start!=None else None start = int(cdata.start) if cdata.start!=None else None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论