Hi, this makes the nary_set_pointer method available to other gems. With this, I was able to create a bridge between Torch.rb and Numo where an update in one object is reflected in the other, just like PyTorch has a bridge with NumPy. Here's the code if you're interested.
I'm not very good with C, so there may be a better way to do this.
Hi, this makes the
nary_set_pointer
method available to other gems. With this, I was able to create a bridge between Torch.rb and Numo where an update in one object is reflected in the other, just like PyTorch has a bridge with NumPy. Here's the code if you're interested.I'm not very good with C, so there may be a better way to do this.