mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
593 stars 43 forks source link

drjit.make_opaque fails with ad tensor #65

Closed JamesZFS closed 2 years ago

JamesZFS commented 2 years ago

I am trying to make an ad tensor type opaque:

import drjit as dr
from drjit.llvm.ad import TensorXf

t = dr.zeros(TensorXf, (10, 10, 3))
dr.make_opaque(t)

Got AttributeError: 'drjit.cuda.ad.TensorXf' object has no attribute 'detach_ref_'

However, for non-ad tensors, it works fine

Speierers commented 2 years ago

Hi @JamesZFS,

Thanks for reporting this issue. It will be fixed in the next release: f6bde89