Merge branch 'develop' into baker

This commit is contained in:
iclementine 2021-03-29 11:17:51 +08:00
commit 4757f08550
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class LSTMSpeakerEncoder(nn.Layer):
if reduce: if reduce:
embed = paddle.mean(normalized_embeds, 0) embed = paddle.mean(normalized_embeds, 0)
embed = F.normalize(embed, axis=0) embed = F.normalize(embed, axis=0)
return embeds return embed
def embed_utterance(self, utterances, initial_states=None): def embed_utterance(self, utterances, initial_states=None):
# utterances: [B, T, C] -> embed [C'] # utterances: [B, T, C] -> embed [C']