Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function performs a sampler operation and generates the output tensor using the grid given by the grid generator.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="stDesc">Previously created spatial transformer descriptor object.</param>
/// <param name="alpha">Pointer to scaling factor (in host memory) used to blend the source value with prior value in the destination tensor as follows: dstValue = alpha[0]*srcValue + beta[0]*priorDstValue.</param>
/// <param name="xDesc">Handle to the previously initialized input tensor descriptor.</param>
/// <param name="x">Data pointer to GPU memory associated with the tensor descriptor xDesc.</param>
/// <param name="grid">A grid of coordinates generated by cudnnSpatialTfGridGeneratorForward.</param>
/// <param name="beta">Pointer to scaling factor (in host memory) used to blend the source value with prior value in the destination tensor as follows: dstValue = alpha[0]*srcValue + beta[0]*priorDstValue.</param>
/// <param name="yDesc">Handle to the previously initialized output tensor descriptor.</param>
/// <param name="y">Data pointer to GPU memory associated with the output tensor descriptor yDesc.</param>
This function performs a sampler operation and generates the output tensor using the grid given by the grid generator.
This function performs a sampler operation and generates the output tensor using the grid given by the grid generator .
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnSpatialTfSamplerForward(
                                         cudnnHandle handle,
                                         cudnnSpatialTransformerDescriptor stDesc,
                                         ref float alpha,
                                         cudnnTensorDescriptor xDesc,
                                         CUdeviceptr x,
                                         CUdeviceptr grid,
                                         ref float beta,
                                         cudnnTensorDescriptor                    yDesc,
                                         CUdeviceptr y);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSpatialTfSamplerForward ( cudnnHandle handle , cudnnSpatialTransformerDescriptor stDesc , ref float alpha , cudnnTensorDescriptor xDesc , CUdeviceptr x , CUdeviceptr grid , ref float beta , cudnnTensorDescriptor yDesc , CUdeviceptr y ) ;
This function performs a sampler operation and generates the output tensor using the grid given by the grid generator.
This function performs a sampler operation and generates the output tensor using the grid given by the grid generator .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
stDesc
cudnnSpatialTransformerDescriptor
Previously created spatial transformer descriptor object.
Previously created spatial transformer descriptor object .
float
ref
xDesc
cudnnTensorDescriptor
Handle to the previously initialized input tensor descriptor.
Handle to the previously initialized input tensor descriptor .
x
CUdeviceptr
Data pointer to GPU memory associated with the tensor descriptor xDesc.
Data pointer to GPU memory associated with the tensor descriptor xDesc .
grid
CUdeviceptr
A grid of coordinates generated by cudnnSpatialTfGridGeneratorForward.
A grid of coordinates generated by cudnnSpatialTfGridGeneratorForward .
yDesc
cudnnTensorDescriptor
Handle to the previously initialized output tensor descriptor.
Handle to the previously initialized output tensor descriptor .
y
CUdeviceptr
Data pointer to GPU memory associated with the output tensor descriptor yDesc.
Data pointer to GPU memory associated with the output tensor descriptor yDesc .
alpha
Pointer to scaling factor (in host memory) used to blend the source value with prior value in the destination tensor as follows: dstValue = alpha[0]*srcValue + beta[0]*priorDstValue.
Pointer to scaling factor ( in host memory ) used to blend the source value with prior value in the destination tensor as follows : dstValue = alpha [ 0 ] * srcValue + beta [ 0 ] * priorDstValue .
beta
Pointer to scaling factor (in host memory) used to blend the source value with prior value in the destination tensor as follows: dstValue = alpha[0]*srcValue + beta[0]*priorDstValue.
Pointer to scaling factor ( in host memory ) used to blend the source value with prior value in the destination tensor as follows : dstValue = alpha [ 0 ] * srcValue + beta [ 0 ] * priorDstValue .