Skip to content

Commit 5727643

Browse files
committed
crossconv -> crosscor
1 parent 519b5c2 commit 5727643

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/conv.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ function conv(x::A, w::A; pad = 0, stride = 1, dilation = 1) where A<:AbstractAr
3030
x, w, pad = pad_, stride = stride_, dilation = dilation)
3131
end
3232

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
3434
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_)),
3636
x, w, pad = pad_, stride = stride_, dilation = dilation)
3737
end
3838

@@ -51,7 +51,7 @@ function conv!(y::AbstractArray{T,3}, x::AbstractArray{T,3}, w::AbstractArray{T,
5151
return y
5252
end
5353

54-
function crossconv!(y::AbstractArray, x::AbstractArray, w::AbstractArray;
54+
function crosscor!(y::AbstractArray, x::AbstractArray, w::AbstractArray;
5555
pad = 0, stride = 1, dilation = 1)
5656
conv!(y, x, w, pad=pad, stride=stride, dilation=dilation, flipkernel=1)
5757
end
@@ -107,16 +107,16 @@ function depthwiseconv(x::A, w::A; pad = 0, stride = 1) where A<:AbstractArray
107107
depthwiseconv!(similar(x, dcdims(size(x), size(w), pad_, stride_)), x, w, pad = pad_, stride = stride_)
108108
end
109109

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
111111
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_)
113113
end
114114

115115
depthwiseconv!(y::AbstractArray{T,4}, x::AbstractArray{T,4}, w::AbstractArray{T,4};
116116
pad = 0, stride = 1, flipkernel=0) where T =
117117
depthwiseconv2d!(y, x, w, padding = pad, stride = stride, mode= flipkernel)
118118

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};
120120
pad = 0, stride = 1) where T =
121121
depthwiseconv!(y, x, w, pad = pad, stride = stride, flipkernel=1)
122122

0 commit comments

Comments
 (0)