Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm curious why you set segment_embedding's first dimension to 3. #36

Open
wonbeeny opened this issue Mar 24, 2021 · 1 comment
Open

Comments

@wonbeeny
Copy link

First of all, thanks for your kind offer.

Why did you set segment_embedding's first dimension to 3 ??

This is on path [FastBERT/uer/layers/embeddings.py] (line 18)

Is this part flexible depending on the model architecture?
The paper does not have this content, so I asked a question.

@Domifance
Copy link

You look at the code,
It has nothing to do with the structure of the model.
It's just a convenient to model implementation,
in fact,segment_embedding first dimension in pre_trained model is all zeros.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants