3d7df0a72f8414b222cf4a600120af5057a41889,tests/keras/backend/backend_test.py,,,#,12

Before Change


from keras.utils.conv_utils import convert_kernel
from keras.backend import cntk_backend as KC

BACKENDS = [KTH, KTF, KC]


def check_dtype(var, dtype):
    if K._BACKEND == "theano":

After Change


    from keras.backend import theano_backend as KTH
    BACKENDS.append(KTH)
except ImportError:
    warnings.warn("Could not import the Theano backend")


def check_dtype(var, dtype):
    if K._BACKEND == "theano":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 2

Instances


Project Name: keras-team/keras
Commit Name: 3d7df0a72f8414b222cf4a600120af5057a41889
Time: 2017-08-13
Author: tleeuwenburg@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name:
Method Name:


Project Name: AlexEMG/DeepLabCut
Commit Name: 390d6560c6873526218606c254627f52898c700d
Time: 2020-08-19
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project


Project Name: GPflow/GPflow
Commit Name: b08f3062c96677de266af26767634fd7c6e6611d
Time: 2016-09-09
Author: alexggmatthews@googlemail.com
File Name: GPflow/tf_hacks.py
Class Name:
Method Name: eye


Project Name: dmlc/gluon-nlp
Commit Name: c9e80b3f0d81a69e7022b2447ee6809d4e2d2ed7
Time: 2019-05-07
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/finetune_classifier.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: ff62eb251b04b8301e71aee970bdb157f2649fa9
Time: 2016-12-14
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: regularizers


Project Name: wkentaro/labelme
Commit Name: 68f3395fa9bc8743e105cbd6f1459a99ede1f6ff
Time: 2018-03-31
Author: www.kentaro.wada@gmail.com
File Name: labelme/utils.py
Class Name:
Method Name: labelme_shapes_to_label