How to pass a numpy float array from Python to C#? #2226
Unanswered
vadimkantorov
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You have to take in a pointer or make a custom codec |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a method in C# which accepts an argument of type
ReadOnlyMemory<float>
.How can I call this method from Python (using PythonNet) and pass / marshall a NumPy array (of dtype np.float32)? (need not necessarily a zero-copy way)
Beta Was this translation helpful? Give feedback.
All reactions