本文整理汇总了C#中ManagedCuda.CudaDNN.cudnnTensorDescriptor类的典型用法代码示例。如果您正苦于以下问题:C# cudnnTensorDescriptor类的具体用法?C# cudnnTensorDescriptor怎么用?C# cudnnTensorDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
cudnnTensorDescriptor类属于ManagedCuda.CudaDNN命名空间,在下文中一共展示了cudnnTensorDescriptor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:kunzmi,项目名称:managedCuda,代码行数:9,代码来源:TensorDescriptor.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: 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);
}
开发者ID:MutterOberin,项目名称:managedCuda,代码行数:19,代码来源:LRNDescriptor.cs
示例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
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:8,代码来源:CudaDNNNativeMethods.cs
示例7: cudnnScaleTensor
public static extern cudnnStatus cudnnScaleTensor( cudnnHandle handle,
cudnnTensorDescriptor srcDestDesc,
CUdeviceptr srcDestData,
ref double alpha
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:5,代码来源:CudaDNNNativeMethods.cs
示例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
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:9,代码来源:CudaDNNNativeMethods.cs
示例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);
}
开发者ID:MutterOberin,项目名称:managedCuda,代码行数:16,代码来源:LRNDescriptor.cs
示例10: 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
示例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
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaDNNNativeMethods.cs
示例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
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaDNNNativeMethods.cs
示例13: cudnnGetTensorNdDescriptor
public static extern cudnnStatus cudnnGetTensorNdDescriptor( cudnnTensorDescriptor tensorDesc,
int nbDimsRequested,
ref cudnnDataType dataType,
ref int nbDims,
int[] dimA,
int[] strideA
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:7,代码来源:CudaDNNNativeMethods.cs
示例14: cudnnSetTensorNdDescriptor
public static extern cudnnStatus cudnnSetTensorNdDescriptor(cudnnTensorDescriptor tensorDesc,
cudnnDataType dataType,
int nbDims,
int[] dimA,
int[] strideA
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:6,代码来源:CudaDNNNativeMethods.cs
示例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);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:14,代码来源:CudaDNNNativeMethods.cs
示例16: 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
示例17: cudnnGetTensor4dDescriptor
public static extern cudnnStatus cudnnGetTensor4dDescriptor( cudnnTensorDescriptor tensorDesc,
ref cudnnDataType dataType, // image data type
ref int n, // number of inputs (batch size)
ref int c, // number of input feature maps
ref int h, // height of input section
ref int w, // width of input section
ref int nStride,
ref int cStride,
ref int hStride,
ref int wStride
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:11,代码来源:CudaDNNNativeMethods.cs
示例18: 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
示例19: cudnnGetConvolutionNdForwardOutputDim
public static extern cudnnStatus cudnnGetConvolutionNdForwardOutputDim( cudnnConvolutionDescriptor convDesc,
cudnnTensorDescriptor inputTensorDesc,
cudnnFilterDescriptor filterDesc,
int nbDims,
int[] tensorOuputDimA
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:6,代码来源:CudaDNNNativeMethods.cs
示例20: cudnnDivisiveNormalizationBackward
public static extern cudnnStatus cudnnDivisiveNormalizationBackward(
cudnnHandle handle,
cudnnLRNDescriptor normDesc,
cudnnDivNormMode mode,
ref double 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,
ref double beta,
cudnnTensorDescriptor destDataDesc, // same desc for dest, means, meansDiff
CUdeviceptr destDataDiff, // output data differential
CUdeviceptr destMeansDiff // output means differential, can be NULL
);
开发者ID:lvaleriu,项目名称:managedCuda,代码行数:16,代码来源:CudaDNNNativeMethods.cs
注:本文中的ManagedCuda.CudaDNN.cudnnTensorDescriptor类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论