private cudnnActivationBackward ( |
||
handle | ||
activationDesc | ||
alpha | double | |
srcDesc | ||
srcData | ManagedCuda.BasicTypes.CUdeviceptr | |
srcDiffDesc | ||
srcDiffData | ManagedCuda.BasicTypes.CUdeviceptr | |
destDesc | ||
destData | ManagedCuda.BasicTypes.CUdeviceptr | |
beta | double | |
destDiffDesc | ||
destDiffData | ManagedCuda.BasicTypes.CUdeviceptr | |
리턴 | cudnnStatus |
/* Function to perform backward activation */ public void ActivationBackward(cudnnActivationMode mode, double alpha, TensorDescriptor srcDesc, CudaDeviceVariable <double> srcData, TensorDescriptor srcDiffDesc, CudaDeviceVariable <double> srcDiffData, TensorDescriptor destDesc, CudaDeviceVariable <double> destData, double beta, TensorDescriptor destDiffDesc, CudaDeviceVariable <double> destDiffData ) { res = CudaDNNNativeMethods.cudnnActivationBackward(_handle, mode, ref alpha, srcDesc.Desc, srcData.DevicePointer, srcDiffDesc.Desc, srcDiffData.DevicePointer, destDesc.Desc, destData.DevicePointer, ref beta, destDiffDesc.Desc, destDiffData.DevicePointer); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnActivationForward", res)); if (res != cudnnStatus.Success) { throw new CudaDNNException(res); } }