dd44c0c3bc168b3e88cda22c443283894fd24c54,python/mxnet/symbol/numpy/_symbol.py,_Symbol,__getitem__,#_Symbol#Any#,63

Before Change


                        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


                return _npi.advanced_indexing(self, key)
            elif isinstance(key, tuple) and len(key) == 0:
                return self
            elif isinstance(key, tuple) and all(isinstance(k, Symbol) for k in key):
                key = _npi.stack(*[i for i in key])
                sliced = _npi.advanced_indexing_multiple(self, key)
                return sliced
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: pymc-devs/pymc3
Commit Name: 7a31475bb139893cd3fd2bd1dbc33d040a0511c8
Time: 2017-05-04
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: _logp_chol


Project Name: pymc-devs/pymc3
Commit Name: 7a31475bb139893cd3fd2bd1dbc33d040a0511c8
Time: 2017-05-04
Author: aseyboldt@users.noreply.github.com
File Name: pymc3/distributions/multivariate.py
Class Name: MvNormal
Method Name: _logp_tau