cudnnCreateActivationDescriptor() private method

private cudnnCreateActivationDescriptor ( cudnnActivationDescriptor &activationDesc ) : cudnnStatus
activationDesc cudnnActivationDescriptor
return cudnnStatus
Esempio n. 1
0
 /// <summary>
 /// An opaque structure holding the description of an activation operation.
 /// </summary>
 public ActivationDescriptor()
 {
     _desc = new cudnnActivationDescriptor();
     res   = CudaDNNNativeMethods.cudnnCreateActivationDescriptor(ref _desc);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateTensorDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }