/// <summary>
 /// This function destroys a previously created spatial transformer descriptor object. 
 /// </summary>
 /// <param name="samplerType">Enumerant to specify the sampler type.</param>
 /// <param name="dataType">Data type.</param>
 /// <param name="nbDims">Dimension of the transformed tensor.</param>
 /// <param name="dimA">Array of dimension nbDims containing the size of the transformed tensor for every dimension.</param>
 public void SetSpatialTransformerNdDescriptor(
                                 cudnnSamplerType samplerType,
                                 cudnnDataType dataType,
                                 int nbDims,
                                 int[] dimA)
 {
     res = CudaDNNNativeMethods.cudnnSetSpatialTransformerNdDescriptor(_desc, samplerType, dataType, nbDims, dimA);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnSetSpatialTransformerNdDescriptor", res));
     if (res != cudnnStatus.Success) throw new CudaDNNException(res);
 }
 public static extern cudnnStatus cudnnSetSpatialTransformerNdDescriptor(
                                 cudnnSpatialTransformerDescriptor stDesc,
                                 cudnnSamplerType samplerType,
                                 cudnnDataType dataType,
                                 int nbDims,
                                 int []dimA);