cudnnCreateDropoutDescriptor() private method

private cudnnCreateDropoutDescriptor ( cudnnDropoutDescriptor &dropoutDesc ) : cudnnStatus
dropoutDesc cudnnDropoutDescriptor
return cudnnStatus
Exemplo n.º 1
0
 /// <summary>
 /// </summary>
 public DropoutDescriptor(CudaDNNContext context)
 {
     _handle = context.Handle;
     _desc   = new cudnnDropoutDescriptor();
     res     = CudaDNNNativeMethods.cudnnCreateDropoutDescriptor(ref _desc);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateDropoutDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }