Create a filter descriptor.

    This function creates a filter descriptor object by allocating the memory needed
    to hold its opaque structure.

    Parameters
    ----------

    Returns
    -------
    wDesc : cudnnFilterDescriptor
        Handle to a newly allocated filter descriptor.

def cudnnCreateFilterDescriptor():
    """"
    Create a filter descriptor.

    This function creates a filter descriptor object by allocating the memory needed
    to hold its opaque structure.

    Parameters
    ----------

    Returns
    -------
    wDesc : cudnnFilterDescriptor
        Handle to a newly allocated filter descriptor.
    """

    wDesc = ctypes.c_void_p()
    status = _libcudnn.cudnnCreateFilterDescriptor(ctypes.byref(wDesc))
    cudnnCheckStatus(status)

    return wDesc.value