be6d8293f26d6d577b61874ccf6d68f116734d5a,tests/keras/backend/backend_test.py,,,#,14

Before Change




BACKENDS = []  // Holds a list of all available back-ends
WITH_NP = [K, KNP]

try:
    from keras.backend import cntk_backend as KC
    BACKENDS.append(KC)

After Change


    warnings.warn("Could not import the Theano backend")


WITH_NP = [KTH if K.backend() == "theano" else KC if K.backend() == "cntk" else KTF, KNP]


def check_dtype(var, dtype):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: keras-team/keras
Commit Name: be6d8293f26d6d577b61874ccf6d68f116734d5a
Time: 2018-08-28
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: 545acc4b66b5fb0ed5457ef7288d836f022c118d
Time: 2018-09-01
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_linear_operations


Project Name: keras-team/keras
Commit Name: be6d8293f26d6d577b61874ccf6d68f116734d5a
Time: 2018-08-28
Author: me@taehoonlee.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_nn_operations


Project Name: keras-team/keras
Commit Name: 555ca942df407b8c1bf1d48383c60fa1bf09cc1d
Time: 2019-08-28
Author: francois.chollet@gmail.com
File Name: tests/keras/engine/test_training.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: 8f41e41eda6e8ea96403cae5798a5a89c8bb5605
Time: 2018-12-20
Author: frederic.branchaud-charron@usherbrooke.ca
File Name: tests/test_multiprocessing.py
Class Name:
Method Name: