本文整理汇总了C#中ManagedCuda.CudaDNN.cudnnHandle类的典型用法代码示例。如果您正苦于以下问题:C# cudnnHandle类的具体用法?C# cudnnHandle怎么用?C# cudnnHandle使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
cudnnHandle类属于ManagedCuda.CudaDNN命名空间,在下文中一共展示了cudnnHandle类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: cudnnIm2Col
public static extern cudnnStatus cudnnIm2Col( cudnnHandle handle,
cudnnTensorDescriptor srcDesc,
CUdeviceptr srcData,
cudnnFilterDescriptor filterDesc,
cudnnConvolutionDescriptor convDesc,
CUdeviceptr colBuffer
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:7,代码来源:CudaDNNNativeMethods.cs
示例17: cudnnScaleTensor
public static extern cudnnStatus cudnnScaleTensor( cudnnHandle handle,
cudnnTensorDescriptor srcDestDesc,
CUdeviceptr srcDestData,
ref double alpha
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:5,代码来源:CudaDNNNativeMethods.cs
示例18: cudnnLRNCrossChannelForward
public static extern cudnnStatus cudnnLRNCrossChannelForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
cudnnLRNMode lrnMode,
ref float alpha,
cudnnTensorDescriptor srcDesc,
CUdeviceptr srcData,
ref float beta,
cudnnTensorDescriptor destDesc,
CUdeviceptr destData);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:10,代码来源:CudaDNNNativeMethods.cs
示例19: cudnnFindConvolutionForwardAlgorithm
public static extern cudnnStatus cudnnFindConvolutionForwardAlgorithm(cudnnHandle handle,
cudnnTensorDescriptor srcDesc,
cudnnFilterDescriptor filterDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor destDesc,
int requestedAlgoCount,
ref int returnedAlgoCount,
cudnnConvolutionFwdAlgoPerf[] perfResults
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs
示例20: cudnnLRNCrossChannelBackward
public static extern cudnnStatus cudnnLRNCrossChannelBackward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
cudnnLRNMode lrnMode,
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,代码行数:14,代码来源:CudaDNNNativeMethods.cs
注:本文中的ManagedCuda.CudaDNN.cudnnHandle类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论