7fd53c15c6273327ef10c2458848fcaf2a85e406,finetune/base_models/gpt2/featurizer.py,,gpt2_featurizer,#Any#Any#Any#Any#Any#,138

Before Change




def gpt2_featurizer(X, encoder, config, train=False, reuse=None):
    initial_shape = [a or -1 for a in X.get_shape().as_list()]
    X = tf.reshape(X, shape=[-1] + initial_shape[-2:])

    with tf.variable_scope("model/featurizer", reuse=reuse):
        embed_weights = tf.get_variable(

After Change


def gpt2_featurizer(X, encoder, config, train=False, reuse=None):
    initial_shape = tf.shape(X)
    X = tf.reshape(X, shape=[-1] + initial_shape[-2:])
    X = tf.reshape(X, shape=tf.concat(([-1], initial_shape[-2:]), 0))

    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: 8

Instances


Project Name: IndicoDataSolutions/finetune
Commit Name: 7fd53c15c6273327ef10c2458848fcaf2a85e406
Time: 2019-03-21
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/gpt2/featurizer.py
Class Name:
Method Name: gpt2_featurizer


Project Name: IndicoDataSolutions/finetune
Commit Name: 7fd53c15c6273327ef10c2458848fcaf2a85e406
Time: 2019-03-21
Author: benlt@hotmail.co.uk
File Name: finetune/base_models/gpt/featurizer.py
Class Name:
Method Name: gpt_featurizer


Project Name: HyperGAN/HyperGAN
Commit Name: 6df4c07fcf14e5ea3e1b3bb7cfccd3ef8e1c6150
Time: 2017-01-09
Author: mikkel@255bits.com
File Name: hypergan/discriminators/pyramid_nostride_discriminator.py
Class Name:
Method Name: discriminator