Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4152

Issue with Loading TorchScript in Rhino/Grasshopper

$
0
0

I’m encountering an error when trying to load a “TorchScript model” inside Rhino/Grasshopper using RhinoCode. The script I’m using is:

model = torch.jit.load(model_path)

However, I get the following error:

Unknown builtin op: torch_scatter::segment_sum_csr.
Could not find any similar ops to torch_scatter::segment_sum_csr.

This seems related to “torch_scatter”, but my code runs fine in PyCharm with the same Python environment. It looks like there might be an issue with installing “torch_scatter” properly in Rhino.

Has anyone encountered this issue when using PyTorch Geometric inside Rhino/Grasshopper? Any suggestions on how to resolve this?

Thanks in advance! :pray:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4152

Trending Articles