本文整理汇总了C#中ManagedCuda.CudaDNN.cudnnTensorDescriptor类的典型用法代码示例。如果您正苦于以下问题:C# cudnnTensorDescriptor类的具体用法?C# cudnnTensorDescriptor怎么用?C# cudnnTensorDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
cudnnTensorDescriptor类属于ManagedCuda.CudaDNN命名空间,在下文中一共展示了cudnnTensorDescriptor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TensorDescriptor
/// <summary>
/// </summary>
public TensorDescriptor()
{
_desc = new cudnnTensorDescriptor();
res = CudaDNNNativeMethods.cudnnCreateTensorDescriptor(ref _desc);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateTensorDescriptor", 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: cudnnDivisiveNormalizationBackward
public void cudnnDivisiveNormalizationBackward(
cudnnDivNormMode mode,
float alpha,
cudnnTensorDescriptor srcDesc, // same desc for diff, means, temp, temp2
CUdeviceptr srcData,
CUdeviceptr srcMeansData, // if NULL, means are assumed to be zero
CUdeviceptr srcDiffData,
CUdeviceptr tempData,
CUdeviceptr tempData2,
float betaData,
cudnnTensorDescriptor destDataDesc, // same desc for dest, means, meansDiff
CUdeviceptr destDataDiff, // output data differential
CUdeviceptr destMeansDiff // output means differential, can be NULL
)
{
res = CudaDNNNativeMethods.cudnnDivisiveNormalizationBackward(_handle, _desc, mode, ref alpha, srcDesc, srcData, srcMeansData, srcDiffData, tempData, tempData2, ref betaData, destDataDesc, destDataDiff, destMeansDiff);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnDivisiveNormalizationBackward", res));
if (res != cudnnStatus.Success) throw new CudaDNNException(res);
}
示例6: cudnnGetConvolution2dForwardOutputDim
public static extern cudnnStatus cudnnGetConvolution2dForwardOutputDim( cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
ref int n,
ref int c,
ref int h,
ref int w
);
示例7: cudnnScaleTensor
public static extern cudnnStatus cudnnScaleTensor( cudnnHandle handle,
cudnnTensorDescriptor srcDestDesc,
CUdeviceptr srcDestData,
ref double alpha
);
示例8: cudnnPoolingForward
public static extern cudnnStatus cudnnPoolingForward( cudnnHandle handle,
cudnnPoolingDescriptor poolingDesc,
ref float alpha,
cudnnTensorDescriptor srcDesc,
CUdeviceptr srcData,
ref float beta,
cudnnTensorDescriptor destDesc,
CUdeviceptr destData
);
示例9: cudnnDivisiveNormalizationForward
public void cudnnDivisiveNormalizationForward(
cudnnDivNormMode mode,
double alpha,
cudnnTensorDescriptor srcDesc, // same desc for means, temp, temp2
CUdeviceptr srcData,
CUdeviceptr srcMeansData, // if NULL, means are assumed to be zero
CUdeviceptr tempData,
CUdeviceptr tempData2,
double beta,
cudnnTensorDescriptor destDesc,
CUdeviceptr destData)
{
res = CudaDNNNativeMethods.cudnnDivisiveNormalizationForward(_handle, _desc, mode, ref alpha, srcDesc, srcData, srcMeansData, tempData, tempData2, ref beta, destDesc, destData);
Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnDivisiveNormalizationForward", res));
if (res != cudnnStatus.Success) throw new CudaDNNException(res);
}
示例10: cudnnGetConvolutionForwardAlgorithm
public static extern cudnnStatus cudnnGetConvolutionForwardAlgorithm( cudnnHandle handle,
cudnnTensorDescriptor srcDesc,
cudnnFilterDescriptor filterDesc,
cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor destDesc,
cudnnConvolutionFwdPreference preference,
SizeT memoryLimitInbytes,
ref cudnnConvolutionFwdAlgo algo
);
示例11: cudnnConvolutionForward
public static extern cudnnStatus cudnnConvolutionForward( cudnnHandle handle,
ref double alpha,
cudnnTensorDescriptor srcDesc,
CUdeviceptr srcData,
cudnnFilterDescriptor filterDesc,
CUdeviceptr filterData,
cudnnConvolutionDescriptor convDesc,
cudnnConvolutionFwdAlgo algo,
CUdeviceptr workSpace,
SizeT workSpaceSizeInBytes,
ref double beta,
cudnnTensorDescriptor destDesc,
CUdeviceptr destData
);
示例12: cudnnDivisiveNormalizationForward
public static extern cudnnStatus cudnnDivisiveNormalizationForward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
cudnnDivNormMode mode,
ref double alpha,
cudnnTensorDescriptor srcDesc, // same desc for means, temp, temp2
CUdeviceptr srcData,
CUdeviceptr srcMeansData, // if NULL, means are assumed to be zero
CUdeviceptr tempData,
CUdeviceptr tempData2,
ref double beta,
cudnnTensorDescriptor destDesc,
CUdeviceptr destData
);
示例13: cudnnGetTensorNdDescriptor
public static extern cudnnStatus cudnnGetTensorNdDescriptor( cudnnTensorDescriptor tensorDesc,
int nbDimsRequested,
ref cudnnDataType dataType,
ref int nbDims,
int[] dimA,
int[] strideA
);
示例14: cudnnSetTensorNdDescriptor
public static extern cudnnStatus cudnnSetTensorNdDescriptor(cudnnTensorDescriptor tensorDesc,
cudnnDataType dataType,
int nbDims,
int[] dimA,
int[] strideA
);
示例15: 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);