Wrong dimensions for @tf.function decorator #201
Unanswered
leonknight99
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes, this is a common problem that has been addressed in a very recent commit to the It should work after then, and when I push the new version to Cheers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Thank you for all the work that had been put into this python library!
I have created my own dataset using the spektral Dataset format from top quark events where the graphs are either labelled as signal (1) or background (0). Each graph is fully connected with each node (objects in the event) having 6 features and each edge having a single feature (distance between the objects). The number of nodes in each graph varies graph to graph (event to event) ranging from a minimum of 8 to a maximum of 15.
Example of a graph:
Before trying to make my own message passing layers I have first tried to use the QM9 example to test that my dataset is in the right format for spektral. Although it doesn't train properly to my data, it seems to be able to run through my dataset fine until I add back in the tf.function decorator for the train step. The tf.function returns a value error saying the python inputs are incompatible with the input signature. Just wondering if this implies that there is something wrong with my data or I have just included a format that the decorator doesn't like
Just wondering if I have made an obvious mistake somewhere with the formats of the input arrays
Thank you,
Leon
Beta Was this translation helpful? Give feedback.
All reactions