6b5813458e9fb1da4a99c2bafc335526955c3dc5,finetune/base_models/gpt/featurizer.py,,gpt_featurizer,#Any#Any#Any#Any#Any#Any#,224

Before Change


        else:
            embed_weights = tf.stop_gradient(embed_weights)

        X = tf.reshape(X, [-1, config.max_length, 2])

        clf_token = encoder.end_token
        pool_idx = tf.cast(tf.argmax(tf.cast(tf.equal(X[:, :, 0], clf_token), tf.float32), 1), tf.int32)

After Change


    
    initial_shape = tf.shape(X)
    X = tf.reshape(X, shape=tf.concat(([-1], initial_shape[-2:]), 0))
    sequence_length = tf.shape(X)[1]

    with tf.variable_scope("model/featurizer", reuse=reuse):
        embed_weights = tf.get_variable(
            name="we",
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b5813458e9fb1da4a99c2bafc335526955c3dc5
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/gpt/featurizer.py
Class Name:
Method Name: gpt_featurizer


Project Name: IndicoDataSolutions/finetune
Commit Name: 6b5813458e9fb1da4a99c2bafc335526955c3dc5
Time: 2020-01-10
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/tcn/featurizer.py
Class Name:
Method Name: tcn_featurizer


Project Name: deepmind/sonnet
Commit Name: e164c3574da160fb72fc962947a783fa299424e3
Time: 2019-07-07
Author: tomhennigan@google.com
File Name: sonnet/src/batch_apply.py
Class Name:
Method Name: merge_leading_dims