Skip to content
Discussion options

You must be logged in to vote

Hello @ciy405x,

Does the following work for you?

choice = mi.Int32(choice.squeeze().to(torch.int32))
active = dr.eq(choice, 0)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ciy405x
Comment options

@wjakob
Comment options

Answer selected by ciy405x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants