当前位置: 首页>>代码示例>>C#>>正文


C# CudaDNN.cudnnHandle类代码示例

本文整理汇总了C#中ManagedCuda.CudaDNN.cudnnHandle的典型用法代码示例。如果您正苦于以下问题:C# cudnnHandle类的具体用法?C# cudnnHandle怎么用?C# cudnnHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


cudnnHandle类属于ManagedCuda.CudaDNN命名空间,在下文中一共展示了cudnnHandle类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CudaDNNContext

 /// <summary>
 /// </summary>
 public CudaDNNContext()
 {
     _handle = new cudnnHandle();
     res = CudaDNNNativeMethods.cudnnCreate(ref _handle);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreate", res));
     if (res != cudnnStatus.Success) throw new CudaDNNException(res);
 }
开发者ID:MutterOberin,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNContext.cs

示例2: cudnnActivationForward

        public static extern cudnnStatus cudnnActivationForward( cudnnHandle handle,
														  cudnnActivationMode mode,
														  ref float alpha,
														  cudnnTensorDescriptor srcDesc,
														  CUdeviceptr srcData,
														  ref float beta,
														  cudnnTensorDescriptor destDesc,
														  CUdeviceptr destData
														);
开发者ID:furusdara,项目名称:cuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs

示例3: cudnnActivationBackward

        public static extern cudnnStatus cudnnActivationBackward( cudnnHandle handle,
                                                           cudnnActivationDescriptor activationDesc,
                                                           ref float alpha,
														   cudnnTensorDescriptor srcDesc,
														   CUdeviceptr srcData,
														   cudnnTensorDescriptor srcDiffDesc,
														   CUdeviceptr srcDiffData,
														   cudnnTensorDescriptor destDesc,
														   CUdeviceptr destData,
														   ref float beta,
														   cudnnTensorDescriptor destDiffDesc,
														   CUdeviceptr destDiffData
														 );
开发者ID:kunzmi,项目名称:managedCuda,代码行数:13,代码来源:CudaDNNNativeMethods.cs

示例4: cudnnActivationBackward

        public static extern cudnnStatus cudnnActivationBackward( cudnnHandle handle,
														   cudnnActivationMode mode,
														   ref double alpha,
														   cudnnTensorDescriptor srcDesc,
														   CUdeviceptr srcData,
														   cudnnTensorDescriptor srcDiffDesc,
														   CUdeviceptr srcDiffData,
														   cudnnTensorDescriptor destDesc,
														   CUdeviceptr destData,
														   ref double beta,
														   cudnnTensorDescriptor destDiffDesc,
														   CUdeviceptr destDiffData
														 );
开发者ID:furusdara,项目名称:cuda,代码行数:13,代码来源:CudaDNNNativeMethods.cs

示例5: cudnnAddTensor

		public static extern cudnnStatus cudnnAddTensor(cudnnHandle handle,
											ref double alpha,
											cudnnTensorDescriptor biasDesc,
											CUdeviceptr biasData,
											ref double beta,
											cudnnTensorDescriptor srcDestDesc,
											CUdeviceptr srcDestData
										  );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:8,代码来源:CudaDNNNativeMethods.cs

示例6: cudnnSetTensor

		public static extern cudnnStatus cudnnSetTensor( cudnnHandle                   handle,
												  cudnnTensorDescriptor   srcDestDesc,
												  CUdeviceptr srcDestData,
												  CUdeviceptr value
												 );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:5,代码来源:CudaDNNNativeMethods.cs

示例7: cudnnFindConvolutionBackwardDataAlgorithm

		public static extern cudnnStatus cudnnFindConvolutionBackwardDataAlgorithm( cudnnHandle handle,
                                                                     cudnnFilterDescriptor       filterDesc,
                                                                     cudnnTensorDescriptor       diffDesc,
                                                                     cudnnConvolutionDescriptor  convDesc, 
                                                                     cudnnTensorDescriptor       gradDesc,
                                                                     int                           requestedAlgoCount,
                                                                     ref int                               returnedAlgoCount,
                                                                     cudnnConvolutionBwdDataAlgoPerf[] perfResults  
                                                                   );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs

示例8: cudnnConvolutionBackwardData

		public static extern cudnnStatus cudnnConvolutionBackwardData( cudnnHandle handle,
																 ref double alpha,
																 cudnnFilterDescriptor       filterDesc,
																 CUdeviceptr filterData,
																 cudnnTensorDescriptor       diffDesc,
																 CUdeviceptr diffData,
																 cudnnConvolutionDescriptor  convDesc,
																 cudnnConvolutionBwdDataAlgo           algo,
																 CUdeviceptr workSpace,
																 SizeT                              workSpaceSizeInBytes,
																 ref double beta,
																 cudnnTensorDescriptor       gradDesc,
																 CUdeviceptr gradData
															   );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaDNNNativeMethods.cs

示例9: cudnnCreate

		public static extern cudnnStatus cudnnCreate(ref cudnnHandle handle);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaDNNNativeMethods.cs

示例10: cudnnDestroy

		public static extern cudnnStatus cudnnDestroy(cudnnHandle handle);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:1,代码来源:CudaDNNNativeMethods.cs

示例11: cudnnPoolingBackward

		public static extern cudnnStatus cudnnPoolingBackward( cudnnHandle handle,
														cudnnPoolingDescriptor poolingDesc,
														ref double alpha,
														cudnnTensorDescriptor srcDesc,
														CUdeviceptr srcData,
														cudnnTensorDescriptor srcDiffDesc,
														CUdeviceptr srcDiffData,
														cudnnTensorDescriptor destDesc,
														CUdeviceptr destData,
														ref double beta,
														cudnnTensorDescriptor destDiffDesc,
														CUdeviceptr destDiffData
													  );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:13,代码来源:CudaDNNNativeMethods.cs

示例12: cudnnGetConvolutionForwardAlgorithm

		public static extern cudnnStatus cudnnGetConvolutionForwardAlgorithm( cudnnHandle                      handle,
																	   cudnnTensorDescriptor      srcDesc,
																	   cudnnFilterDescriptor      filterDesc,
																	   cudnnConvolutionDescriptor convDesc, 
																	   cudnnTensorDescriptor      destDesc,
																	   cudnnConvolutionFwdPreference    preference, 
																	   SizeT                             memoryLimitInbytes,
																	   ref cudnnConvolutionFwdAlgo         algo                                                  
																	 );        
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs

示例13: cudnnSoftmaxBackward

		public static extern cudnnStatus cudnnSoftmaxBackward( cudnnHandle handle,
														cudnnSoftmaxAlgorithm algorithm,
														cudnnSoftmaxMode mode,
														ref double alpha,
														cudnnTensorDescriptor srcDesc,
														CUdeviceptr srcData,
														cudnnTensorDescriptor srcDiffDesc,
														CUdeviceptr srcDiffData,
														ref double beta,
														cudnnTensorDescriptor destDiffDesc,
														CUdeviceptr destDiffData
													  );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:12,代码来源:CudaDNNNativeMethods.cs

示例14: cudnnPoolingForward

		public static extern cudnnStatus cudnnPoolingForward(  cudnnHandle handle,
														cudnnPoolingDescriptor poolingDesc,
														ref float alpha,
														cudnnTensorDescriptor srcDesc,
														CUdeviceptr srcData,
														ref float beta,
														cudnnTensorDescriptor destDesc,
														CUdeviceptr destData
													 );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs

示例15: cudnnSoftmaxForward

		public static extern cudnnStatus cudnnSoftmaxForward(  cudnnHandle handle,
														cudnnSoftmaxAlgorithm algorithm,
														cudnnSoftmaxMode mode,
														ref float alpha,
														cudnnTensorDescriptor srcDesc,
														CUdeviceptr srcData,
														ref float beta,
														cudnnTensorDescriptor destDesc,
														CUdeviceptr destData
													 );
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaDNNNativeMethods.cs


注:本文中的ManagedCuda.CudaDNN.cudnnHandle类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。