Replies: 1 comment 2 replies
-
Hi @Dream4Leo,
No, we currently only have Python bindings for With regards to your second question, what you have should work (omitting the slicing operation), although I've only tested this out on Dr.Jit 1.0.1. I suspect you're using an older version of Dr.Jit as the terminology for placeholder variables is outdated. If you're still encountering issues, it might be worth providing a bit more code with regards to how |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to create python equivalent type of
dr::Complex<UnpolarizedSpectrum>
?I tried
dr.cuda.Complex2f(mi.Spectrum(0), mi.Spectrum(1))
and it says:TypeError: Complex2f constructor expects: 1 or 2 values of type "float", a matching list/tuple, or a NumPy/PyTorch/TF/Jax array.
I am using
cuda_spectral
variant of mitsuba, having searched through docs but could not find a python example.Edit:
I also wonder the correct way in drjit to implement something like
dr.sum(dr.exp(a[:,None]*b), axis=1)
wherea
isSpectrum
andb
is a drjit float array. I tried to manually unroll the spectral dimension likes[0]=dr.sum(dr.exp(a[0]*b))
, but it throws RuntimeError: jitc_var_eval(r3749): placeholder variables are used to record computation symbolically and cannot be scheduled for evaluation.Beta Was this translation helpful? Give feedback.
All reactions