-
Notifications
You must be signed in to change notification settings - Fork 34
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
Non-deterministic and suspicious errors #89
Comments
I dumped the model using following script with modified version of onnx-chainer https://github.com/msakai/onnx-chainer/tree/94baaf4294c7e8ae1a255cc5823535fe1e1dd9e7 : import numpy as np
import chainer
import chainer_chemistry
from chainer_chemistry.models import GGNN
import onnx_chainer
mb = 32
edge_type = 4
atom = 51
n_atom_types = chainer_chemistry.config.MAX_ATOMIC_NUM # 117
n_unit = 16
conv_layers = 4
#atom_array = chainer.Variable(np.arange(mb * atom, dtype=np.int32).reshape(mb, atom) % n_atom_types)
atom_array2 = chainer.Variable(np.zeros((32,51,16,1), dtype=np.float32))
adj = chainer.Variable(np.ones((mb, edge_type, atom, atom), dtype=np.float32))
class Dummy(chainer.Chain):
def __init__(self):
super().__init__()
with self.init_scope():
self.m = GGNN(out_dim=n_unit, hidden_dim=n_unit, n_layers=conv_layers)
def __call__(self, atom_array2, adj):
return self.m(atom_array2.reshape((32,51,16)), adj)
onnx_chainer.export(Dummy(), [atom_array2, adj], filename='ggnn.onnx') |
Merged
With #90 it always fails with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran the following program with the attached
ggnn.onnx
in ggnn.zip.The results are non-deterministic and the "menoh variable not found error" errors raise the doubt of bug.
The text was updated successfully, but these errors were encountered: