提交 b64f1ddf authored 作者: Frederic Bastien's avatar Frederic Bastien

Added comment and removed useless line found while doing code review.

上级 06d13855
......@@ -3152,14 +3152,13 @@ class Subtensor(Op):
if not isinstance(node.inputs[0].type, TensorType):
raise NotImplementedError()
#
# two arrays are created:
# two arrays are created in C code:
# is_slice: len == ndim, 0 means int, 1 means slice
# subtensor_spec: len = n_ints + 3 * n_slices
#
fail = sub['fail']
init_cmds = []
init_cmds = [] # initialization for subtensor_spec
is_slice = []
inplace = 1
NONE_CODE = sys.maxint - 1
pos = [0,1] #annoying version of global variable for init_entry
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论