How to convert the values in dynamic Snode into numpy? to_numpy() will get the full array #8588
-
For the dynamic SNode, how to get the values into numpy or other things. If calling to_numpy(), it will get the full-size stuff, however, I just want the dynamic size stuff. Below stuff works, however, seems not clever and efficient, is there more proper way?
|
Beta Was this translation helpful? Give feedback.
Answered by
Jianghanxiao
Sep 6, 2024
Replies: 1 comment
-
I find the below code may be the most efficient and proper way
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Jianghanxiao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I find the below code may be the most efficient and proper way