Library/ManagedCuda/CudaDNN/CudaDNNContext.cs
/// <summary>
/// Derives a tensor descriptor from layer data descriptor for BatchNormalization 
/// scale, invVariance, bnBias, bnScale tensors.Use this tensor desc for 
/// bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions.
/// </summary>
Derives a tensor descriptor from layer data descriptor for BatchNormalization
scale, invVariance, bnBias, bnScale tensors.Use this tensor desc for
bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions.
Derives a tensor descriptor from layer data descriptor for BatchNormalization scale invVariance bnBias bnScale tensors . Use this tensor desc for bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions .
public void DeriveBNTensorDescriptor(
                                        TensorDescriptor derivedBnDesc,
                                        TensorDescriptor xDesc,
                                        cudnnBatchNormMode mode)
        {
            res = CudaDNNNativeMethods.cudnnDeriveBNTensorDescriptor(derivedBnDesc.Desc, xDesc.Desc, mode);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cudnnDeriveBNTensorDescriptor", res));
            if (res != cudnnStatus.Success) throw new CudaDNNException(res);
        }
public void DeriveBNTensorDescriptor ( TensorDescriptor derivedBnDesc , TensorDescriptor xDesc , cudnnBatchNormMode mode ) { res = CudaDNNNativeMethods . cudnnDeriveBNTensorDescriptor ( derivedBnDesc . Desc , xDesc . Desc , mode ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != cudnnStatus . Success ) throw new CudaDNNException ( res ) ; }
Derives a tensor descriptor from layer data descriptor for BatchNormalization
scale, invVariance, bnBias, bnScale tensors.Use this tensor desc for
bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions.
Derives a tensor descriptor from layer data descriptor for BatchNormalization scale invVariance bnBias bnScale tensors . Use this tensor desc for bnScaleBiasMeanVarDesc and bnScaleBiasDiffDesc in Batch Normalization forward and backward functions .
derivedBnDesc
TensorDescriptor
xDesc
TensorDescriptor
mode
cudnnBatchNormMode