本文整理汇总了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);
}
示例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
);
示例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
);
示例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
);
示例5: cudnnAddTensor
public static extern cudnnStatus cudnnAddTensor(cudnnHandle handle,
ref double alpha,
cudnnTensorDescriptor biasDesc,
CUdeviceptr biasData,
ref double beta,
cudnnTensorDescriptor srcDestDesc,
CUdeviceptr srcDestData
);
示例6: cudnnSetTensor
public static extern cudnnStatus cudnnSetTensor( cudnnHandle handle,
cudnnTensorDescriptor srcDestDesc,
CUdeviceptr srcDestData,
CUdeviceptr value
);
示例7: cudnnFindConvolutionBackwardDataAlgorithm
public static extern cudnnStatus cudnnFindConvolutionBackwardDataAlgorithm( cudnnHandle handle,
cudnnFilterDescriptor filterDesc,
cudnnTensorDescriptor diffDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor gradDesc,
int requestedAlgoCount,
ref int returnedAlgoCount,
cudnnConvolutionBwdDataAlgoPerf[] perfResults
);
示例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
);
示例9: cudnnCreate
public static extern cudnnStatus cudnnCreate(ref cudnnHandle handle);
示例10: cudnnDestroy
public static extern cudnnStatus cudnnDestroy(cudnnHandle handle);
示例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
);
示例12: cudnnGetConvolutionForwardAlgorithm
public static extern cudnnStatus cudnnGetConvolutionForwardAlgorithm( cudnnHandle handle,
cudnnTensorDescriptor srcDesc,
cudnnFilterDescriptor filterDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor destDesc,
cudnnConvolutionFwdPreference preference,
SizeT memoryLimitInbytes,
ref cudnnConvolutionFwdAlgo algo
);
示例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
);
示例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
);
示例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
);