@@ -30,9 +30,9 @@ function conv(x::A, w::A; pad = 0, stride = 1, dilation = 1) where A<:AbstractAr
30
30
x, w, pad = pad_, stride = stride_, dilation = dilation)
31
31
end
32
32
33
- function crossconv (x:: A , w:: A ; pad = 0 , stride = 1 , dilation = 1 ) where A<: AbstractArray
33
+ function crosscor (x:: A , w:: A ; pad = 0 , stride = 1 , dilation = 1 ) where A<: AbstractArray
34
34
pad_, stride_ = padtuple (x, pad), padtuple (x, stride)
35
- crossconv ! (similar (x, cdims (size (x), dilation_dims (w, dilation), pad_, stride_)),
35
+ crosscor ! (similar (x, cdims (size (x), dilation_dims (w, dilation), pad_, stride_)),
36
36
x, w, pad = pad_, stride = stride_, dilation = dilation)
37
37
end
38
38
@@ -51,7 +51,7 @@ function conv!(y::AbstractArray{T,3}, x::AbstractArray{T,3}, w::AbstractArray{T,
51
51
return y
52
52
end
53
53
54
- function crossconv ! (y:: AbstractArray , x:: AbstractArray , w:: AbstractArray ;
54
+ function crosscor ! (y:: AbstractArray , x:: AbstractArray , w:: AbstractArray ;
55
55
pad = 0 , stride = 1 , dilation = 1 )
56
56
conv! (y, x, w, pad= pad, stride= stride, dilation= dilation, flipkernel= 1 )
57
57
end
@@ -107,16 +107,16 @@ function depthwiseconv(x::A, w::A; pad = 0, stride = 1) where A<:AbstractArray
107
107
depthwiseconv! (similar (x, dcdims (size (x), size (w), pad_, stride_)), x, w, pad = pad_, stride = stride_)
108
108
end
109
109
110
- function depthwisecrossconv (x:: A , w:: A ; pad = 0 , stride = 1 ) where A<: AbstractArray
110
+ function depthwisecrosscor (x:: A , w:: A ; pad = 0 , stride = 1 ) where A<: AbstractArray
111
111
pad_, stride_ = padtuple (x, pad), padtuple (x, stride)
112
- depthwisecrossconv ! (similar (x, dcdims (size (x), size (w), pad_, stride_)), x, w, pad = pad_, stride = stride_)
112
+ depthwisecrosscor ! (similar (x, dcdims (size (x), size (w), pad_, stride_)), x, w, pad = pad_, stride = stride_)
113
113
end
114
114
115
115
depthwiseconv! (y:: AbstractArray{T,4} , x:: AbstractArray{T,4} , w:: AbstractArray{T,4} ;
116
116
pad = 0 , stride = 1 , flipkernel= 0 ) where T =
117
117
depthwiseconv2d! (y, x, w, padding = pad, stride = stride, mode= flipkernel)
118
118
119
- depthwisecrossconv ! (y:: AbstractArray{T,4} , x:: AbstractArray{T,4} , w:: AbstractArray{T,4} ;
119
+ depthwisecrosscor ! (y:: AbstractArray{T,4} , x:: AbstractArray{T,4} , w:: AbstractArray{T,4} ;
120
120
pad = 0 , stride = 1 ) where T =
121
121
depthwiseconv! (y, x, w, pad = pad, stride = stride, flipkernel= 1 )
122
122
0 commit comments