Replies: 1 comment 2 replies
-
What is in the contents of the
You aren't seeing this problem with state because you are using |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi, I have the following Pallas Kernell that implements a sweep and prune force calculation:
And this is how I call the kernel:
This is the definition of state and system:
The problem I have is the usage of the system object. When I try to use it, for example, in the
rij()
function, the program fails withValueError: Attempting to pass a Ref MemRef<None>{float32[2]} to a primitive: sub - did you forget to unpack ([...]) the ref?
However, I have no problem at all using the state Pytree. I tried diverse ways of loading the system object and the data from the system I need, but I had a very similar error.
I also tried to use the
in_specs
field withBlockSpec
, but because I'm passing Pytrees, I get this error:I appreciate any recommendations with this. Or if there is an obvious way of loading the data into the system. Here I attach a minimal working example: sim_minimal.txt
Beta Was this translation helpful? Give feedback.
All reactions