How to use TorchScript to save Heterogeneous Graphs? #7297
-
I'm trying to use TorchScript to save a self-defined heterogeneous graph model. The
How to declare the dict type to convert the model a TorchScript program? Looking forward to your reply. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Currently, |
Beta Was this translation helpful? Give feedback.
Currently,
HeteroConv
does not support TorchScript since it uses*args
and**kwargs
logic internally. You can probably bypass this limitation by defining a customHeteroConv
wrapper without this logic. Would that work for you?