public GetConvolutionNdDescriptor ( int arrayLengthRequested, int &arrayLength, int padA, int strideA, int upscaleA, cudnnConvolutionMode &mode, cudnnDataType &dataType ) : void | ||
arrayLengthRequested | int | Dimension of the expected convolution descriptor. It is also the /// minimum size of the arrays padA, filterStrideA and upsacleA in /// order to be able to hold the results |
arrayLength | int | actual dimension of the convolution descriptor. |
padA | int | Array of dimension of at least arrayLengthRequested that will be /// filled with the padding parameters from the provided convolution /// descriptor. |
strideA | int | Array of dimension of at least arrayLengthRequested that will be /// filled with the filter stride from the provided convolution descriptor. |
upscaleA | int | Array of dimension at least arrayLengthRequested that will be filled /// with the upscaling parameters from the provided convolution descriptor. |
mode | cudnnConvolutionMode | convolution mode of the provided descriptor. |
dataType | cudnnDataType | datatype of the provided descriptor. |
return | void |
public void GetConvolutionNdDescriptor(int arrayLengthRequested,
ref int arrayLength,
int[] padA,
int[] strideA,
int[] upscaleA,
ref cudnnConvolutionMode mode, ref cudnnDataType dataType
)
{
res = CudaDNNNativeMethods.cudnnGetConvolutionNdDescriptor(_desc, arrayLengthRequested, ref arrayLength, padA, strideA, upscaleA, ref mode, ref dataType);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetConvolutionNdDescriptor", res));
if (res != cudnnStatus.Success) throw new CudaDNNException(res);
}