Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function sets all the elements of a tensor to a given value
/// </summary>
/// <param name="handle">Handle to a previously created cuDNN context.</param>
/// <param name="yDesc">Handle to a previously initialized tensor descriptor.</param>
/// <param name="y">Pointer to data of the tensor described by the srcDestDesc descriptor.</param>
/// <param name="value">Pointer in Host memory to a value that all elements of the tensor will be set to.</param>
This function sets all the elements of a tensor to a given value
This function sets all the elements of a tensor to a given value
[DllImport(CUDNN_API_DLL_NAME)]
        public static extern cudnnStatus cudnnSetTensor(cudnnHandle handle,
                                                  cudnnTensorDescriptor yDesc,
                                                  CUdeviceptr y,
                                                  ref double value
                                                 );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnSetTensor ( cudnnHandle handle , cudnnTensorDescriptor yDesc , CUdeviceptr y , ref double value ) ;
This function sets all the elements of a tensor to a given value
This function sets all the elements of a tensor to a given value
handle
cudnnHandle
Handle to a previously created cuDNN context.
Handle to a previously created cuDNN context .
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 srcDestDesc descriptor.
Pointer to data of the tensor described by the srcDestDesc descriptor .
double
ref
value
Pointer in Host memory to a value that all elements of the tensor will be set to.
Pointer in Host memory to a value that all elements of the tensor will be set to .