dd44c0c3bc168b3e88cda22c443283894fd24c54,python/mxnet/symbol/numpy/_symbol.py,_Symbol,__getitem__,#_Symbol#Any#,63
Before Change
step.append(-1)
new_shape += (-3,)
elif isinstance(index, Symbol):
if new_shape != ():
new_shape += (-4,)
sliced = _npi.slice(result, begin, end, step)
result = _npi.reshape(sliced, new_shape)
if not is_symbol_tuple:
is_symbol_tuple = True
else:
raise IndexError("Only integer, slice, symbol or tuple of these types"
After Change
end = []
step = []
new_shape = ()
assert len(key) // len(key) == 0 handled above
for index in key:
if isinstance(index, py_slice):
if index.step is not None and index.step == 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: apache/incubator-mxnet
Commit Name: dd44c0c3bc168b3e88cda22c443283894fd24c54
Time: 2020-09-21
Author: lausen@amazon.com
File Name: python/mxnet/symbol/numpy/_symbol.py
Class Name: _Symbol
Method Name: __getitem__
Project Name: ilastik/ilastik
Commit Name: 50ce2bcf18b82c182667ba8291d2a6c556ce16e3
Time: 2013-03-05
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/thresholdTwoLevels/opThresholdTwoLevels.py
Class Name: OpThresholdTwoLevels
Method Name: setupOutputs
Project Name: grrrr/nsgt
Commit Name: eaefce1cf2d7dbaf3b59fe9f16007c95368609ed
Time: 2012-08-09
Author: gr@grrrr.org
File Name: nsgt/nsgtf.py
Class Name:
Method Name: nsgtf_sl