Replies: 1 comment 4 replies
-
You will only need dummy inputs for conversion via |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Based on this link and this one, I am trying to convert my GraphSAGE model to a JIT traced version. I see the model is converted to JIT at line num 35 in the gat.py
model = torch.jit.script(model)
And then, the train function is defined and the model is trained. Does the model forward pass needs dummy inputs to be specified?
class PyTorch_to_TorchScript(torch.nn.Module): def __init__(self): super(PyTorch_to_TorchScript, self).__init__() self.model = model def forward(self, data, edge_index_0, edge_size_0, edge_index_1, edge_size_1, edge_index_2, edge_size_2): return self.model(data, edge_index_0, edge_size_0, edge_index_1, edge_size_1, edge_index_2, edge_size_2)
Beta Was this translation helpful? Give feedback.
All reactions