d8796e04f8f8a814eb8ae3206624b5c4b47362f3,tests/keras/backend/backend_test.py,TestBackend,test_stop_gradient,#TestBackend#,461

Before Change


            a = k.variable(val)
            b = k.square(a)
            c, d = k.stop_gradient([a, b])
            e = k.stop_gradient(b)

    // cntk currently not support function in this way, so can"t test as this
    def test_function(self):
        test_backend = [KTH, KTF]

After Change


        // It doesn"t check the functionality (which is checked at the
        // test_gradient test).
        val = np.random.random((4, 2))
        a = K.variable(val)
        b = K.square(a)
        c, d = K.stop_gradient([a, b])
        e = K.stop_gradient(b)

    // cntk currently not support function in this way, so can"t test as this
    def test_function(self):
        test_backend = [KTH, KTF]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: d8796e04f8f8a814eb8ae3206624b5c4b47362f3
Time: 2018-08-22
Author: gabrieldemarmiesse@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_stop_gradient


Project Name: NifTK/NiftyNet
Commit Name: c5023bafe075db2d1deb891816212f5bf297316e
Time: 2018-07-21
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/crf.py
Class Name:
Method Name: permutohedral_gen


Project Name: tensorflow/ranking
Commit Name: 6bf3f51cd0a312da842157665663c2dad9983248
Time: 2021-01-29
Author: xuanhui@google.com
File Name: tensorflow_ranking/python/losses_impl.py
Class Name: ClickEMLoss
Method Name: _compute_latent_prob