Skip to content

Commit 2b832c2

Browse files
committed
remove uneccessary overdub
1 parent 99dbaa1 commit 2b832c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backends/cpu.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ end
135135
return ScratchArray{length(Dims)}(MArray{__size((Dims..., __groupsize(ctx.metadata)...)), T}(undef))
136136
end
137137

138-
Base.@propagate_inbounds function Cassette.overdub(ctx::CPUCtx, ::typeof(Base.getindex), A::ScratchArray, I...)
138+
Base.@propagate_inbounds function Base.getindex(A::ScratchArray, I...)
139139
return A.data[I...]
140140
end
141141

142-
Base.@propagate_inbounds function Cassette.overdub(ctx::CPUCtx, ::typeof(Base.setindex!), A::ScratchArray, val, I...)
142+
Base.@propagate_inbounds function Base.setindex!(A::ScratchArray, val, I...)
143143
A.data[I...] = val
144144
end

0 commit comments

Comments
 (0)