135a56e0935fbb04811f8ce7b9f514f498212f71,niftynet/layer/crf.py,,ftheta,#Any#Any#Any#Any#Any#Any#,148

Before Change


    // Message Passing
    data = tf.reshape(tf.nn.softmax(H1), [batch_size, -1, n_ch])
    Q1 = [None] * len(permutohedrals)
    with tf.device("/cpu:0"):
        for idx, permutohedral in enumerate(permutohedrals):
            Q1[idx] = tf.reshape(
                _permutohedral_gen(permutohedral, data, name + str(idx)),
                U.shape)

    // Weighting Filter Outputs
    Q2 = tf.add_n([Q1 * w for Q1, w in zip(Q1, kernel_weights)])

    // Compatibility Transform
    spatial_dim = infer_spatial_rank(U)

After Change



    // Compatibility Transform, Adding Unary Potentials
    // output logits, not the softmax
    return U - tf.reshape(tf.matmul(Q1, mu), U.shape.as_list())


def permutohedral_prepare(position_vectors):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: 135a56e0935fbb04811f8ce7b9f514f498212f71
Time: 2018-07-25
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: ftheta


Project Name: bethgelab/foolbox
Commit Name: 0420ce7b8c82b035592e0360d8fd98fb7320e62d
Time: 2020-01-28
Author: git@jonasrauber.de
File Name: tests/conftest.py
Class Name:
Method Name: tensorflow_simple_sequential_cpu


Project Name: geometalab/OSMDeepOD
Commit Name: 4b2c31753c2ed650eabe0f811e3ee5d623346c0b
Time: 2016-08-12
Author: samuel.kurath@gmail.com
File Name: src/detection/tensor/detector.py
Class Name: Detector
Method Name: _load_graph