cudnnCreateTensorDescriptor() private method

private cudnnCreateTensorDescriptor ( cudnnTensorDescriptor &tensorDesc ) : cudnnStatus
tensorDesc cudnnTensorDescriptor
return cudnnStatus
Exemplo n.º 1
0
 /// <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);
     }
 }