Merge #1021
1021: nograd for onecold, onehot, onehotbatch r=MikeInnes a=CarloLucibello fixes #1020 Co-authored-by: CarloLucibello <carlo.lucibello@gmail.com>
This commit is contained in:
commit
e4a84c120f
|
@ -125,6 +125,4 @@ onecold(y::AbstractMatrix, labels...) =
|
|||
onecold(y::OneHotMatrix, labels...) =
|
||||
mapreduce(x -> Flux.onecold(x, labels...), |, y.data, dims = 2, init = 0)
|
||||
|
||||
# TODO probably still want this as a custom adjoint Zygote
|
||||
# onecold(x::TrackedVector, l...) = onecold(data(x), l...)
|
||||
# onecold(x::TrackedMatrix, l...) = onecold(data(x), l...)
|
||||
@nograd onecold, onehot, onehotbatch
|
||||
|
|
Loading…
Reference in New Issue