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

Temperature setting in CAT-VAE model #79

Open
dailingjun opened this issue Jul 4, 2023 · 0 comments
Open

Temperature setting in CAT-VAE model #79

dailingjun opened this issue Jul 4, 2023 · 0 comments

Comments

@dailingjun
Copy link

The temperature in the CAT-VAE model is set in this way:

    if batch_idx % self.anneal_interval == 0 and self.training:
        self.temp = np.maximum(self.temp * np.exp(- self.anneal_rate * batch_idx),
                               self.min_temp)

'self.temp' is initialized by 0.5.
'self.min_temp' is initialized by 0.5 too.
'self.temp * np.exp(- self.anneal_rate * batch_idx)' is ALWAYS no larger than 'self.min_temp'.
So 'self.temp' is ALWAYS equal to 'self.min_temp', namely 0.5.
Something wrong?

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