We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I run the training, the "AssertionError: If using tupled rtol it must have the same length as the tuple y0" occurs.
The text was updated successfully, but these errors were encountered:
change line 58-59 in lib/layers/cnf.py:
atol=[self.atol, self.atol] + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.atol, rtol=[self.rtol, self.rtol] + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.rtol,
to
atol= self.atol + 1e20 * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.atol, rtol= self.rtol + 1e20 * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.rtol,
Sorry, something went wrong.
change line 58-59 in lib/layers/cnf.py: atol=[self.atol, self.atol] + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.atol, rtol=[self.rtol, self.rtol] + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.rtol, to atol= self.atol + 1e20 * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.atol, rtol= self.rtol + 1e20 * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.rtol,
This is incorrect.
The following code is correct.
state_t = odeint( self.odefunc, (z, _logpz) + reg_states, integration_times.to(z), atol=[self.atol] * 2 + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.atol, rtol=[self.rtol] * 2 + [1e20] * len(reg_states) if self.solver in ['dopri5', 'bosh3'] else self.rtol, adjoint_atol=self.atol, adjoint_rtol=self.rtol, method=self.solver, options=self.solver_options, adjoint_options=self.adjoint_options )
No branches or pull requests
when I run the training, the "AssertionError: If using tupled rtol it must have the same length as the tuple y0" occurs.
The text was updated successfully, but these errors were encountered: