nograd for onecold, onehot, onehotbatch
This commit is contained in:
parent
60043fa2aa
commit
6499344af3
|
@ -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