Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function copies the scaled data from one tensor to another tensor with a different
/// layout. Those descriptors need to have the same dimensions but not necessarily the
/// same strides. The input and output tensors must not overlap in any way (i.e., tensors
/// cannot be transformed in place). This function can be used to convert a tensor with an
/// unsupported format to a supported one.
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="alpha">Pointer to scaling factors (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. Please refer to this section for
/// additional details.</param>
/// <param name="xDesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="x">Pointer to data of the tensor described by the srcDesc descriptor.</param>
/// <param name="beta">Pointer to scaling factors (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. Please refer to this section for
/// additional details.</param>
/// <param name="yDesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="y">Pointer to data of the tensor described by the destDesc descriptor.</param>
This function copies the scaled data from one tensor to another tensor with a different
layout. Those descriptors need to have the same dimensions but not necessarily the
same strides. The input and output tensors must not overlap in any way . This function can be used to convert a tensor with an
unsupported format to a supported one.
This function copies the scaled data from one tensor to another tensor with a different layout . Those descriptors need to have the same dimensions but not necessarily the same strides . The input and output tensors must not overlap in any way . This function can be used to convert a tensor with an unsupported format to a supported one .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnTransformTensor(   cudnnHandle                    handle,
														  ref double alpha,
														  cudnnTensorDescriptor    xDesc,
														  CUdeviceptr x,
														  ref double beta,
														  cudnnTensorDescriptor    yDesc,
														  CUdeviceptr y
														);
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnTransformTensor ( cudnnHandle handle , ref double alpha , cudnnTensorDescriptor xDesc , CUdeviceptr x , ref double beta , cudnnTensorDescriptor yDesc , CUdeviceptr y ) ;
This function copies the scaled data from one tensor to another tensor with a different
layout.
This function copies the scaled data from one tensor to another tensor with a different layout .
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
double
ref
xDesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
x
CUdeviceptr
Pointer to data of the tensor described by the srcDesc descriptor.
Pointer to data of the tensor described by the srcDesc descriptor .
yDesc
cudnnTensorDescriptor
Handle to a previously initialized tensor descriptor.
Handle to a previously initialized tensor descriptor .
y
CUdeviceptr
Pointer to data of the tensor described by the destDesc descriptor.
Pointer to data of the tensor described by the destDesc descriptor .
alpha
Pointer to scaling factors (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. Please refer to this section for
additional details.
Pointer to scaling factors ( 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 . Please refer to this section for additional details .
beta
Pointer to scaling factors (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. Please refer to this section for
additional details.
Pointer to scaling factors ( 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 . Please refer to this section for additional details .