[drjit] Automatic backend selection #646
-
Is there a way to automatically adapt the backend that is used for Motivation: When writing custom functions, I'd like to use Or should I create the array of zeros using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The solution was rather simple. Functions like
|
Beta Was this translation helpful? Give feedback.
The solution was rather simple. Functions like
dr.zeros
expect a data type as first argument. So one can simply pass a dynamic data type likemi.Float
to them, e.g.: