/// <summary>
 /// 
 /// </summary>
 /// <param name="context"></param>
 public SpatialTransformerDescriptor(CudaDNNContext context)
 {
     _handle = context.Handle;
     _desc = new cudnnSpatialTransformerDescriptor();
     res = CudaDNNNativeMethods.cudnnCreateSpatialTransformerDescriptor(ref _desc);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateSpatialTransformerDescriptor", res));
     if (res != cudnnStatus.Success) throw new CudaDNNException(res);
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="context"></param>
 public SpatialTransformerDescriptor(CudaDNNContext context)
 {
     _handle = context.Handle;
     _desc   = new cudnnSpatialTransformerDescriptor();
     res     = CudaDNNNativeMethods.cudnnCreateSpatialTransformerDescriptor(ref _desc);
     Debug.Write("");//Line(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnCreateSpatialTransformerDescriptor", res));
     if (res != cudnnStatus.Success)
     {
         throw new CudaDNNException(res);
     }
 }
Exemplo n.º 3
0
 public static extern cudnnStatus cudnnSpatialTfSamplerForward(
                                  cudnnHandle handle,
                                  cudnnSpatialTransformerDescriptor stDesc,
                                  ref double alpha,
                                  cudnnTensorDescriptor xDesc,
                                  CUdeviceptr x,
                                  CUdeviceptr grid,
                                  ref double beta,
                                  cudnnTensorDescriptor yDesc,
                                  CUdeviceptr y);
Exemplo n.º 4
0
 public static extern cudnnStatus cudnnCreateSpatialTransformerDescriptor(
                                ref cudnnSpatialTransformerDescriptor stDesc);
Exemplo n.º 5
0
 public static extern cudnnStatus cudnnSpatialTfSamplerBackward(
                                  cudnnHandle handle,
                                  cudnnSpatialTransformerDescriptor stDesc,
                                  ref double alpha,
                                  cudnnTensorDescriptor xDesc,
                                  CUdeviceptr x,
                                  ref double beta,
                                  cudnnTensorDescriptor dxDesc,
                                  CUdeviceptr dx,
                                  CUdeviceptr alphaDgrid,
                                  cudnnTensorDescriptor dyDesc,
                                  CUdeviceptr dy,
                                  CUdeviceptr grid,
                                  CUdeviceptr betaDgrid,
                                  CUdeviceptr dgrid);
Exemplo n.º 6
0
 public static extern cudnnStatus cudnnSpatialTfGridGeneratorForward(
                                  cudnnHandle handle,
                                  cudnnSpatialTransformerDescriptor stDesc,
                                  CUdeviceptr theta,
                                  CUdeviceptr grid);
Exemplo n.º 7
0
 public static extern cudnnStatus cudnnSpatialTfGridGeneratorBackward(
                                  cudnnHandle handle,
                                  cudnnSpatialTransformerDescriptor stDesc,
                                  CUdeviceptr dgrid,
                                  CUdeviceptr dtheta);
Exemplo n.º 8
0
 public static extern cudnnStatus cudnnSetSpatialTransformerNdDescriptor(
                                 cudnnSpatialTransformerDescriptor stDesc,
                                 cudnnSamplerType samplerType,
                                 cudnnDataType dataType,
                                 int nbDims,
                                 int []dimA);
Exemplo n.º 9
0
 public static extern cudnnStatus cudnnDestroySpatialTransformerDescriptor(
                                  cudnnSpatialTransformerDescriptor stDesc);