Library/ManagedCuda/CudaDNN/PoolingDescriptor.cs
/// <summary>
/// This function provides the output dimensions of a tensor after 2d pooling has been applied
/// </summary>
/// <param name="inputTensorDesc">Handle to the previously initialized input tensor descriptor.</param>
/// <param name="n">Number of images in the output</param>
/// <param name="c">Number of channels in the output</param>
/// <param name="h">Height of images in the output</param>
/// <param name="w">Width of images in the output</param>
This function provides the output dimensions of a tensor after 2d pooling has been applied
This function provides the output dimensions of a tensor after 2d pooling has been applied
public void GetPooling2dForwardOutputDim(TensorDescriptor inputTensorDesc,
																	 ref int n,
																	 ref int c,
																	 ref int h,
																	 ref int w)
		{
			res = CudaDNNNativeMethods.cudnnGetPooling2dForwardOutputDim(_desc, inputTensorDesc.Desc, ref n, ref c, ref h, ref w);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnGetPooling2dForwardOutputDim", res));
			if (res != cudnnStatus.Success) throw new CudaDNNException(res);
		}
public void GetPooling2dForwardOutputDim ( TensorDescriptor inputTensorDesc , ref int n , ref int c , ref int h , ref int w ) { res = CudaDNNNativeMethods . cudnnGetPooling2dForwardOutputDim ( _desc , inputTensorDesc . Desc , ref n , ref c , ref h , ref w ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
This function provides the output dimensions of a tensor after 2d pooling has been applied
This function provides the output dimensions of a tensor after 2d pooling has been applied
inputTensorDesc
TensorDescriptor
Handle to the previously initialized input tensor descriptor.
Handle to the previously initialized input tensor descriptor .
int
ref
n
Number of images in the output
Number of images in the output
c
Number of channels in the output
Number of channels in the output
h
Height of images in the output
Height of images in the output
w
Width of images in the output
Width of images in the output