f08b65795c016562eb9dac1daffde50cec4d448c,tensorly/backend/mxnet_backend.py,,argmin,#Any#Any#,118
Before Change
return nd.argmax(data, axis).astype("int32").asscalar()
def argmin(data=None, axis=None):
return nd.argmin(data, axis).astype("int32").asscalar()
def abs(tensor, **kwargs):
if isinstance(tensor, nd.NDArray):
return nd.abs(tensor, **kwargs)
After Change
return res
def argmin(data=None, axis=None):
res = nd.argmin(data, axis)
if res.shape == (1,):
return res.astype("int32").asscalar()
else:
return res
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: tensorly/tensorly
Commit Name: f08b65795c016562eb9dac1daffde50cec4d448c
Time: 2018-09-14
Author: zli@wustl.edu
File Name: tensorly/backend/mxnet_backend.py
Class Name:
Method Name: argmin
Project Name: tensorly/tensorly
Commit Name: 463b5539fb1ca42fafd4791c539a53d1fc49e9ae
Time: 2018-09-19
Author: zli@wustl.edu
File Name: tensorly/backend/mxnet_backend.py
Class Name:
Method Name: argmin
Project Name: librosa/librosa
Commit Name: c642d7d1d43a27ee9972d8ade8d4e77e28b5328f
Time: 2015-01-05
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: match_events
Project Name: matplotlib/matplotlib
Commit Name: 7b2cb35c5b4f540fc750f3355d71dff84094b88b
Time: 2019-07-09
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/widgets.py
Class Name: ToolHandles
Method Name: closest