a0d860d4ec3854c37c352613bf93913b6302327f,ludwig/models/modules/category_encoders.py,CategoricalEmbedEncoder,call,#CategoricalEmbedEncoder#Any#Any#Any#,81

Before Change


            :param return: embeddings of shape [batch x embed size], type tf.float32
        

        embedded, embedding_size = self.embed(
            tf.cast(inputs, dtype=tf.int32),
            None,   // todo tf2 need regularizer
            self.dropout,
            self.embeddings_trainable
        )

        // todo tf2: remove tf.squeeze() after Embed() update to return correct
        //           dimension
        embedded = tf.squeeze(embedded)

After Change



            :param return: embeddings of shape [batch x embed size], type tf.float32
        
        embedded = self.embed(
            inputs, training=training, mask=mask
        )
        return embedded


class CategoricalSparseEncoder(Layer):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: uber/ludwig
Commit Name: a0d860d4ec3854c37c352613bf93913b6302327f
Time: 2020-04-17
Author: w4nderlust@gmail.com
File Name: ludwig/models/modules/category_encoders.py
Class Name: CategoricalEmbedEncoder
Method Name: call


Project Name: pyannote/pyannote-audio
Commit Name: d6b449edcbdaf559807aaff6bd3234f47134e303
Time: 2017-05-11
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/approaches/center_loss.py
Class Name: CenterLoss
Method Name: loss_and_grad


Project Name: pyannote/pyannote-audio
Commit Name: c420d6988619eac7ea994a41782807834ff9ebbe
Time: 2017-05-11
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/approaches/triplet_loss.py
Class Name: TripletLoss
Method Name: loss_and_grad