Library/ManagedCuda/CudaDNN/SpatialTransformerDescriptor.cs
/// <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>
This function destroys a previously created spatial transformer descriptor object.
This function destroys a previously created spatial transformer descriptor object .
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 void SetSpatialTransformerNdDescriptor ( cudnnSamplerType samplerType , cudnnDataType dataType , int nbDims , int [ ] dimA ) { res = CudaDNNNativeMethods . cudnnSetSpatialTransformerNdDescriptor ( _desc , samplerType , dataType , nbDims , dimA ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function destroys a previously created spatial transformer descriptor object.
This function destroys a previously created spatial transformer descriptor object .
samplerType
cudnnSamplerType
Enumerant to specify the sampler type.
Enumerant to specify the sampler type .
dataType
cudnnDataType
None
nbDims
int
Dimension of the transformed tensor.
Dimension of the transformed tensor .
dimA
int[]
Array of dimension nbDims containing the size of the transformed tensor for every dimension.
Array of dimension nbDims containing the size of the transformed tensor for every dimension .