135a56e0935fbb04811f8ce7b9f514f498212f71,niftynet/layer/crf.py,,permutohedral_compute,#Any#Any#Any#Any#Any#Any#Any#,335

Before Change



    // This is needed to force tensorflow to update the cache
    with tf.control_dependencies([reset_splat]):
        uncached_splat = splat.read_value()

    with tf.control_dependencies([uncached_splat]):
        for scit in range(num_simplex_corners):
            data = data_vectors * barycentric[:, scit:scit + 1]
            splat = tf.scatter_nd_add(splat, indices[scit], data)

After Change


    // Splatting
    with tf.variable_scope(name):
        splat = tf.contrib.framework.local_variable(
            tf.constant(0.0), validate_shape=False, name="splatbuffer")

    //with tf.control_dependencies([splat.initialized_value()]):
    initial_splat = tf.zeros(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: permutohedral_compute


Project Name: Microsoft/nni
Commit Name: 9d468d2c742491af2d2f506c648ddc95ffea6a64
Time: 2019-10-20
Author: lanny@mail.hfut.edu.cn
File Name: src/sdk/pynni/nni/compression/tensorflow/builtin_pruners.py
Class Name: SensitivityPruner
Method Name: calc_mask


Project Name: reinforceio/tensorforce
Commit Name: 6c35b7992eb57e530665c243eea426044e0940ef
Time: 2020-01-05
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/models/model.py
Class Name: Model
Method Name: api_reset