Skip to content
Minsing Log
Go back

English Edition

Mean pooling - Let's match the embedding dimensions

Data & ML

Problem

FFT encoding Lyrics and the quantized f0 melody produces [batch size, hidden channel, time(seq_len) -> sequence length]. The sequence lengths can be different, right??

Solution

Use mean pooling~~

Take the mean for each feature in the hidden channel to make the seq len 1 -> do the same for the melody

ex.)

  ------hidden channel---------
김  
민
재
짜
스
  mean mean mean mean mean mean ....
 

Follow the journey

Get new posts by email.

Short, honest notes on building, startups, learning, failures, and retrospectives, for readers who follow the journey rather than pass through from search.

The newsletter is coming soon. Until then, follow via RSS or email me to get notified.


Share this post:

Comments

Sign in with GitHub to leave a comment.


Previous Post
Why do we transpose when using nn.Embedding?
Next Post
Python getter → What Is __getitem__?