-
Notifications
You must be signed in to change notification settings - Fork 185
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
Multiple errors (function rb_frame_method_id_and_class cannot be found; internal exception) with torch.rb #3205
Comments
I upgraded to truffleruby+graalvm-dev (also adding the #3151 patch), but the problem still persists. |
Apparently, the problem is that the rice gem does not work with TruffleRuby: ruby-rice/rice#189 Any suggestion? |
So that means that C API function is not yet implemented in TruffleRuby. |
Regarding the second error
I think that means a struct by value is used as an argument or return type, and NFI does not support that yet. |
Could you quote here what these two lines contain?
|
I am trying to get torch.rb working with TruffleRuby (version truffleruby+graalvm-23.0.0 installed with rbenv+ruby_build on a M1 MacBookPro), but unfortunately when I launch the following super simple command that generates a 1D tensor from the data contained in an array:
I get the following error:
In addition, slightly changing the code to give dimensions instead of data to Tensor.new:
generates a completely different error that reports an internal exception:
truffleruby: an internal exception escaped out of the interpreter, please report it to https://github.com/oracle/truffleruby/issues.I would like to help fixing this, but I really wouldn't know where to start. Any suggestions?
The text was updated successfully, but these errors were encountered: