Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function initializes a previously created generic Tensor descriptor object.
/// </summary>
/// <param name="tensorDesc">Handle to a previously created tensor descriptor.</param>
/// <param name="format"></param>
/// <param name="dataType">Data type.</param>
/// <param name="nbDims">Dimension of the tensor.</param>
/// <param name="dimA">Array of dimension nbDims that contain the size of the tensor for every dimension.</param>
This function initializes a previously created generic Tensor descriptor object.
This function initializes a previously created generic Tensor descriptor object .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnSetTensorNdDescriptorEx(
                                cudnnTensorDescriptor tensorDesc,
                                cudnnTensorFormat format,
                                cudnnDataType dataType,
                                int nbDims,
                                int[] dimA );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetTensorNdDescriptorEx ( cudnnTensorDescriptor tensorDesc , cudnnTensorFormat format , cudnnDataType dataType , int nbDims , int [ ] dimA ) ;
This function initializes a previously created generic Tensor descriptor object.
This function initializes a previously created generic Tensor descriptor object .
tensorDesc
cudnnTensorDescriptor
Handle to a previously created tensor descriptor.
Handle to a previously created tensor descriptor .
format
cudnnTensorFormat
None
dataType
cudnnDataType
None
nbDims
int
Dimension of the tensor.
Dimension of the tensor .
dimA
int[]
Array of dimension nbDims that contain the size of the tensor for every dimension.
Array of dimension nbDims that contain the size of the tensor for every dimension .