Library/ManagedCuda/CudaDNN/CudaDNNNativeMethods.cs
/// <summary>
/// This function scale all the elements of a tensor by a give factor.
/// </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="alpha">Pointer in Host memory to a value that all elements of the tensor will be scaled with.</param>
This function scale all the elements of a tensor by a give factor.
This function scale all the elements of a tensor by a give factor .
[DllImport(CUDNN_API_DLL_NAME)]
		public static extern cudnnStatus cudnnScaleTensor(   cudnnHandle                    handle,
													  cudnnTensorDescriptor    yDesc,
													  CUdeviceptr y,
													  ref float alpha
												  );
[ DllImport ( CUDNN_API_DLL_NAME ) ] public static extern cudnnStatus cudnnScaleTensor ( cudnnHandle handle , cudnnTensorDescriptor yDesc , CUdeviceptr y , ref float alpha ) ;
This function scale all the elements of a tensor by a give factor.
This function scale all the elements of a tensor by a give factor .
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 .
float
ref
alpha
Pointer in Host memory to a value that all elements of the tensor will be scaled with.
Pointer in Host memory to a value that all elements of the tensor will be scaled with .