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

Different strategies during training and inference #8

Open
King4819 opened this issue May 15, 2024 · 0 comments
Open

Different strategies during training and inference #8

King4819 opened this issue May 15, 2024 · 0 comments

Comments

@King4819
Copy link

King4819 commented May 15, 2024

Seems that the code utilizes F.gumbel_softmax during training, but torch.argmin during inference

I want to ask that why using argmin instead of argmax ? I think the mask true should correspond to larger probability, so it should use argmax ?

Also, I have found that your code actually utilizes gumbel softmax at both training and inference stage, since "self.inference" argument is false at both training and inference stage.

Also, I discovered that when I modified to use argmin at inference stage, the performance will drastically drop.

Hope to get your response, thanks!

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