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);
 }
Exemplo n.º 2
0
 public static extern cudnnStatus cudnnCreateDropoutDescriptor(ref cudnnDropoutDescriptor dropoutDesc);
Exemplo n.º 3
0
 public static extern cudnnStatus cudnnSetRNNDescriptor(cudnnRNNDescriptor rnnDesc,
                                                 int hiddenSize,
                                                 int seqLength,
                                                 int numLayers,
                                                 cudnnDropoutDescriptor dropoutDesc, // Between layers, not between recurrent steps.
                                                 cudnnRNNInputMode inputMode,
                                                 cudnnDirectionMode direction,
                                                 cudnnRNNMode mode,
                                                 cudnnDataType dataType);
Exemplo n.º 4
0
 public static extern cudnnStatus cudnnSetDropoutDescriptor(cudnnDropoutDescriptor dropoutDesc,
                                                     cudnnHandle handle,
                                                     float dropout,
                                                     CUdeviceptr states,
                                                     SizeT stateSizeInBytes,
                                                     ulong seed);
Exemplo n.º 5
0
 public static extern cudnnStatus cudnnDropoutForward(cudnnHandle handle,
                                               cudnnDropoutDescriptor dropoutDesc,
                                               cudnnTensorDescriptor xdesc,
                                               CUdeviceptr x,
                                               cudnnTensorDescriptor ydesc,
                                               CUdeviceptr y,
                                               CUdeviceptr reserveSpace,
                                               SizeT reserveSpaceSizeInBytes);
Exemplo n.º 6
0
 public static extern cudnnStatus cudnnDropoutBackward(cudnnHandle handle,
                                        cudnnDropoutDescriptor dropoutDesc,
                                        cudnnTensorDescriptor dydesc,
                                        CUdeviceptr dy,
                                        cudnnTensorDescriptor dxdesc,
                                        CUdeviceptr dx,
                                        CUdeviceptr reserveSpace,
                                        SizeT reserveSpaceSizeInBytes);
Exemplo n.º 7
0
 public static extern cudnnStatus cudnnDestroyDropoutDescriptor(cudnnDropoutDescriptor dropoutDesc);