From 6bdd283fbd1a7bfc1f9e5c96adb20f27d27ed4b9 Mon Sep 17 00:00:00 2001 From: Mike J Innes Date: Wed, 21 Feb 2018 22:29:24 +0000 Subject: [PATCH] no longer necessary --- src/onehot.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/onehot.jl b/src/onehot.jl index 608e3549..07206dfe 100644 --- a/src/onehot.jl +++ b/src/onehot.jl @@ -36,7 +36,6 @@ adapt(T, xs::OneHotMatrix) = OneHotMatrix(xs.height, adapt(T, xs.data)) import CuArrays: CuArray, cudaconvert Base.Broadcast._containertype(::Type{<:OneHotMatrix{<:CuArray}}) = CuArray cudaconvert(x::OneHotMatrix{<:CuArray}) = OneHotMatrix(x.height, cudaconvert(x.data)) - (::Type{<:CuArray{T}})(x::OneHotMatrix{<:CuArray}) where {T} = broadcast(y -> T(y), x) end function onehot(l, labels)