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

one trivial question about DMAE code #8

Open
go-ahead-maker opened this issue Apr 27, 2024 · 0 comments
Open

one trivial question about DMAE code #8

go-ahead-maker opened this issue Apr 27, 2024 · 0 comments

Comments

@go-ahead-maker
Copy link

Hi Yutong and Cihang,

Thank you for contributing such a great work. Recently, I have been studying the code of DMAE, and I wanna ask a stupid question.

In file models_mae_distill.py, the intermediate features collected (i.e., forward_encoder_customized func.) from ViT encoder are transformed into fp32 by using torch.float32, is this because the teacher model's tensor type is by default fp32 and it requires that both student and teacher's features are alignment w.r.t data type?

Thank a lot.

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

1 participant