Skip to content

Commit 8424c3e

Browse files
committed
delete an unused definition
1 parent 94712cc commit 8424c3e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/broadcast.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,14 @@ end
219219

220220
@adjoint! (b::typeof(broadcast))(f, args...) = _pullback(__context__, broadcasted, f, args...)
221221

222-
# Forward Mode (mainly necessary for CUDA)
222+
# Forward Mode -- necessary for CUDA, also used as a fast path above
223223

224224
import ForwardDiff
225225
using ForwardDiff: Dual
226226

227227
dual(x, p) = x
228228
dual(x::Real, p) = Dual(x, p)
229229

230-
dualtype(::Type{Dual{G,T,P}}) where {G,T,P} = T
231-
dualtype(T) = T
232-
233230
function dual_function(f::F) where F
234231
function (args::Vararg{Any,N}) where N
235232
ds = map(args, ntuple(identity,Val(N))) do x, i

0 commit comments

Comments
 (0)