From d00f833c17c2e18b4a5817390b93a1b35e4d8554 Mon Sep 17 00:00:00 2001 From: Dhairya Gandhi Date: Sun, 6 Oct 2019 04:44:50 +0530 Subject: [PATCH] rm ZeroType --- src/layers/conv.jl | 1 - src/utils.jl | 1 - 2 files changed, 2 deletions(-) diff --git a/src/layers/conv.jl b/src/layers/conv.jl index 0acf3551..d05dfe4d 100644 --- a/src/layers/conv.jl +++ b/src/layers/conv.jl @@ -259,7 +259,6 @@ function CrossCor(w::AbstractArray{T,N}, b::Union{Number, AbstractVector{T}}, σ stride = expand(Val(N-2), stride) pad = expand(Val(2*(N-2)), pad) dilation = expand(Val(N-2), dilation) - b = b isa Nothing ? ZeroType((size(w, ndims(w)), )) : b return CrossCor(σ, w, b, stride, pad, dilation) end diff --git a/src/utils.jl b/src/utils.jl index a12b59b7..246c30d7 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -139,7 +139,6 @@ function throttle(f, timeout; leading=true, trailing=false) end end - """ @jit ...