14266bebf34d3562038dda3c74b9088207c9420b,geomstats/_backend/pytorch/__init__.py,,cumsum,#Any#Any#,533
Before Change
def cumsum(x, axis=0):
if axis is None:
raise NotImplementedError("cumsum is not defined where axis is None")
else:
return torch.cumsum(x, dim=axis)
After Change
def cumsum(x, axis=None):
if axis is None:
return x.flatten().cumsum(dim=0)
return torch.cumsum(x, dim=axis)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: 14266bebf34d3562038dda3c74b9088207c9420b
Time: 2020-04-07
Author: niklas.koep@gmail.com
File Name: geomstats/_backend/pytorch/__init__.py
Class Name:
Method Name: cumsum
Project Name: mil-tokyo/webdnn
Commit Name: 42adcea31de47006d910822145e8faf9d4f8563b
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/tensorflow/ops/gen_array_ops.py
Class Name:
Method Name: slice_handler
Project Name: hyperopt/hyperopt
Commit Name: e8380a03134a586a554643abdef0944c3651b771
Time: 2011-10-22
Author: dyamins@gmail.com
File Name: hyperopt/theano_gp.py
Class Name: GP_BanditAlgo
Method Name: GP_EI_optimize