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

Error during nnRNN initialization #6

Open
AbdelkaderMH opened this issue Apr 8, 2021 · 0 comments
Open

Error during nnRNN initialization #6

AbdelkaderMH opened this issue Apr 8, 2021 · 0 comments

Comments

@AbdelkaderMH
Copy link

Traceback (most recent call last):
File "sMNIST.py", line 281, in
rnn = select_network(args, inp_size)
File "/content/nnRNN/utils.py", line 82, in select_network
i_initializer=iinit)
File "/content/nnRNN/RNN_Cell.py", line 143, in init
self.reset_parameters()
File "/content/nnRNN/RNN_Cell.py", line 161, in reset_parameters
torch.as_tensor(self.r_initializer(self.hidden_size), dtype=torch.float32))
File "/content/nnRNN/RNN_Cell.py", line 173, in _B
return expm(self._A())
File "/content/nnRNN/expRNN/exp_numpy.py", line 533, in expm
return _expm(A, use_exact_onenorm=True)
File "/content/nnRNN/expRNN/exp_numpy.py", line 590, in _expm
s = max(int(torch.ceil(torch.log2(eta_5 / theta_13))), 0)
ValueError: cannot convert float NaN to integer

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