Esempio n. 1
0
 /// <summary>
 /// </summary>
 public RNNDataDescriptor(CudaDNNContext context)
 {
     _handle = context.Handle;
     _desc   = new cudnnRNNDataDescriptor();
     res     = CudaDNNNativeMethods.cudnnCreateRNNDataDescriptor(ref _desc);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateRNNDataDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }