Skip to content
Discussion options

You must be logged in to vote

Hi @ljijjiang1234

Assignment to tensor objects is done by calling dr.scatter(tensor.array, new_value, indices). The tensor.array member is the underlying flat buffer that is used to store the buffer. It's essentially the result of dr.ravel().

This interface should improve soon-ish.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Jackson334-prog
Comment options

Answer selected by Jackson334-prog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #976 on November 14, 2023 14:35.