f097b3e3b0208a23f3b8f90367f32522087025dd,tfdeploy.py,,SparseSegmentSqrtN,#,927

Before Change


    Sparse segmented sum / sqrt(n=len(idxs)) op.
    
    func = lambda _idxs: np.divide(reduce(np.add, a[idxs][_idxs]), np.math.sqrt(len(_idxs)))
    return seg_map(func, a, ids)


@Operation.factory
def Softmax(a):

After Change


    Sparse segmented sum / sqrt(n=len(idxs)) op.
    
    func = lambda _idxs: np.divide(reduce(np.add, a[idxs][_idxs]), np.math.sqrt(len(_idxs)))
    return (seg_map(func, a, ids),)


@Operation.factory
def ArgMin(a, dim):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SparseSegmentSqrtN


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SegmentMax


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SegmentSum


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SegmentMin


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SegmentProd


Project Name: riga/tfdeploy
Commit Name: f097b3e3b0208a23f3b8f90367f32522087025dd
Time: 2016-03-11
Author: marcelrieger@me.com
File Name: tfdeploy.py
Class Name:
Method Name: SegmentMean