edd86f6318b411a42a1f287fa6359bbfd12fa71c,python/src/nnabla/functions.py,,scatter_nd,#Any#Any#Any#Any#,915
Before Change
if not isinstance(ref, nn.NdArray):
raise TypeError("reference data must be NdArray type")
if not ref.shape == shape:
raise ValueError("reference data must have shape {}".format(shape) )
return scatter_nd_base(data, indices, shape, outputs=[ref])
After Change
raise TypeError("One of `shape` or `out` argument must be supplied.")
if shape and out:
raise TypeError("Only one of `shape` or `out` argument may be used.")
if out:
if isinstance(out, nn.Variable):
out = out.data
if not isinstance(out, nn.NdArray):
raise TypeError("`out` argument must be NdArray or Variable type.")
shape = out.shape
outputs = [out]
else:
if isinstance(shape, np.ndarray):
shape = shape.tolist()
outputs = None
return scatter_nd_base(data, indices, shape, outputs=outputs)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: sony/nnabla
Commit Name: edd86f6318b411a42a1f287fa6359bbfd12fa71c
Time: 2019-06-24
Author: stephen.tiedemann@sony.com
File Name: python/src/nnabla/functions.py
Class Name:
Method Name: scatter_nd
Project Name: statsmodels/statsmodels
Commit Name: 72e735a98644b76208d558c0b85150190594c5b1
Time: 2020-06-28
Author: kevin.sheppard@gmail.com
File Name: statsmodels/tsa/tsatools.py
Class Name:
Method Name: add_trend
Project Name: pantsbuild/pants
Commit Name: 2ef0496c6dcccf282add3cc446d5e66cd9c9a9a3
Time: 2019-11-27
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/engine/selectors.py
Class Name: Get
Method Name: extract_constraints