Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

WIP: Add wrapper functions for setting/getting convolution group count #388

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/dnn/libcudnn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ function cudnnSetConvolutionMathType(convDesc, mathType)
convDesc, mathType)
end

function cudnnSetConvolutionGroupCount(convDesc,groupCount)
@check ccall((:cudnnSetConvolutionGroupCount,libcudnn),
cudnnStatus_t,
(cudnnConvolutionDescriptor_t,Cint),
convDesc,groupCount)
end

function cudnnGetConvolutionGroupCount(convDesc,groupCount)
@check ccall((:cudnnGetConvolutionGroupCount,libcudnn),
cudnnStatus_t,
(cudnnConvolutionDescriptor_t,Ptr{Cint}),
convDesc,groupCount)
end

function cudnnCreatePoolingDescriptor(poolingDesc)
@check ccall((:cudnnCreatePoolingDescriptor,libcudnn),
cudnnStatus_t,
Expand Down