You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DifferentiationInterface/docs/src/explanation/operators.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,4 +152,4 @@ For same-point preparation, the same rules hold with two modifications:
152
152
153
153
!!! warning
154
154
These rules hold for the majority of backends, but there are some exceptions.
155
-
The most important exception is [ReverseDiff](@ref) and its taping mechanism, which is sensitive to control flow inside the function.
155
+
The most important exception is [ReverseDiff.jl](https://github.com/JuliaDiff/ReverseDiff.jl) and its taping mechanism, which is sensitive to control flow inside the function.
Copy file name to clipboardExpand all lines: DifferentiationInterface/ext/DifferentiationInterfaceGPUArraysCoreExt/DifferentiationInterfaceGPUArraysCoreExt.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,14 @@ using GPUArraysCore: @allowscalar, AbstractGPUArray
6
6
function DI.basis(a::AbstractGPUArray{T}, i) where {T}
7
7
b =similar(a)
8
8
fill!(b, zero(T))
9
-
@allowscalar b[i] =one(T)
9
+
@allowscalar b[i] =oneunit(T)
10
10
return b
11
11
end
12
12
13
13
function DI.multibasis(a::AbstractGPUArray{T}, inds) where {T}
0 commit comments