Skip to content

Commit 2a44ecd

Browse files
authored
Merge pull request #37 from PatrickPurucker/fix-sample-data
Fix crash during differentiation due to undetached variables
2 parents 41cf969 + 8fb13fd commit 2a44ecd

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/sionna/rt/path_solvers/sample_data.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,12 @@ def insert(self,
112112
shapes = dr.reinterpret_array(mi.UInt, shapes)
113113

114114
# Store data in the buffer
115-
data = SampleData.SampleDataFields(interaction_types, shapes,
116-
primitives, vertices, probs)
115+
data = SampleData.SampleDataFields(dr.detach(interaction_types),
116+
dr.detach(shapes),
117+
dr.detach(primitives),
118+
dr.detach(vertices),
119+
dr.detach(probs))
120+
117121
self._local_mem.write(data, index, active=active)
118122

119123
# Store the local edge index and edge properties

0 commit comments

Comments
 (0)