Skip to content

Commit

Permalink
Fix traced_getfield (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 16, 2024
1 parent 65e9976 commit 668e2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TracedUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ end

function push_val!(ad_inputs, x, path)
for p in path
x = traced_getfield(x, p)
x = Reactant.Compiler.traced_getfield(x, p)
end
x = x.mlir_data
return push!(ad_inputs, x)
Expand All @@ -343,7 +343,7 @@ end

function set!(x, path, tostore; emptypath=false)
for p in path
x = traced_getfield(x, p)
x = Reactant.Compiler.traced_getfield(x, p)
end

x.mlir_data = tostore
Expand Down

0 comments on commit 668e2fc

Please sign in to comment.