e5de887cc58750981974397fad0a5e97dff14b03,tensornets/utils.py,,load_torch_weights,#Any#Any#Any#,137

Before Change


            val = np.transpose(val, [2, 3, 1, 0])
        if val.ndim == 2:
            val = np.transpose(val, [1, 0])
            val = np.flip(val, 0)
        values.append(val)

    for scope in scopes:
        weights = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope=scope)

After Change


            val = np.transpose(val, [2, 3, 1, 0])
        if val.ndim == 2:
            val = np.transpose(val, [1, 0])
        if (val.ndim == 4) and (val.shape[3] // val.shape[2] == 32):
            values += np.split(val, 32, axis=3)
        else:
            values.append(val)

    for scope in scopes:
        weights = tf.get_collection(tf.GraphKeys.GLOBAL_VARIABLES, scope=scope)
        assert len(weights) == len(values), "The sizes of symbolic and " \
                                            "actual weights do not match." \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: taehoonlee/tensornets
Commit Name: e5de887cc58750981974397fad0a5e97dff14b03
Time: 2017-10-09
Author: me@taehoonlee.com
File Name: tensornets/utils.py
Class Name:
Method Name: load_torch_weights


Project Name: aleju/imgaug
Commit Name: 1ca42e57de5f3eca8f81704ef7b753734cfd89cd
Time: 2020-01-11
Author: kontakt@ajung.name
File Name: imgaug/augmenters/flip.py
Class Name:
Method Name: _fliplr_cv2


Project Name: GPflow/GPflowOpt
Commit Name: 1b17dc0090dbf4cebdfe2acc9dbee06179155225
Time: 2017-08-10
Author: joachim.vanderherten@ugent.be
File Name: GPflowOpt/acquisition/mes.py
Class Name: MaxvalueEntropySearch
Method Name: binary_search


Project Name: tensorflow/models
Commit Name: 64710c051f26a2778c03fc15ef29c4bcae01df32
Time: 2018-08-22
Author: reedwm@google.com
File Name: official/recommendation/ncf_main.py
Class Name:
Method Name: evaluate_model