/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { base.Copy(src); if (src is RecurrentParameter) { RecurrentParameter p = (RecurrentParameter)src; m_nNumOutput = p.num_output; m_weight_filler = p.weight_filler.Clone(); m_bias_filler = p.bias_filler.Clone(); m_bDebugInfo = p.debug_info; m_bExposeHidden = p.expose_hidden; m_dfDropoutRatio = p.dropout_ratio; m_lDropoutSeed = p.dropout_seed; m_nNumLayers = p.num_layers; } }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { BinaryHashParameter p = (BinaryHashParameter)src; m_nCacheDepth = p.m_nCacheDepth; m_dfBinaryThresholdForPooling = p.m_dfBinaryThresholdForPooling; m_nTopK = p.m_nTopK; m_nPoolSize = p.m_nPoolSize; m_bEnableDebug = p.m_bEnableDebug; m_selMethod = p.m_selMethod; m_nIterationEnable = p.m_nIterationEnable; m_bEnableDuringTesting = p.m_bEnableDuringTesting; m_distPass1 = p.m_distPass1; m_distPass2 = p.m_distPass2; m_bEnableTripletLoss = p.m_bEnableTripletLoss; m_dfAlpha = p.m_dfAlpha; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { AttentionParameter p = (AttentionParameter)src; m_nDim = p.dim; m_nAxis = p.m_nAxis; if (p.m_fillerParam_bias != null) { m_fillerParam_bias = p.m_fillerParam_bias.Clone(); } if (p.m_fillerParam_weights != null) { m_fillerParam_weights = p.m_fillerParam_weights.Clone(); } }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { EmbedParameter p = (EmbedParameter)src; m_nNumOutput = p.m_nNumOutput; m_nInputDim = p.m_nInputDim; m_bBiasTerm = p.m_bBiasTerm; if (p.m_fillerParam_bias != null) { m_fillerParam_bias = p.m_fillerParam_bias.Clone(); } if (p.m_fillerParam_weights != null) { m_fillerParam_weights = p.m_fillerParam_weights.Clone(); } }
/** @copydoc EngineParameter::Copy */ public override void Copy(LayerParameterBase src) { base.Copy(src); if (src is KernelParameter) { KernelParameter p = (KernelParameter)src; m_rgPad = Utility.Clone <uint>(p.m_rgPad); m_rgStride = Utility.Clone <uint>(p.m_rgStride); m_rgKernelSize = Utility.Clone <uint>(p.m_rgKernelSize); m_rgDilation = Utility.Clone <uint>(p.m_rgDilation); m_nPadH = p.m_nPadH; m_nPadW = p.m_nPadW; m_nStrideH = p.m_nStrideH; m_nStrideW = p.m_nStrideW; m_nKernelH = p.m_nKernelH; m_nKernelW = p.m_nKernelW; } }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { InnerProductParameter p = (InnerProductParameter)src; m_nNumOutput = p.m_nNumOutput; m_bBiasTerm = p.m_bBiasTerm; if (p.m_fillerParam_bias != null) { m_fillerParam_bias = p.m_fillerParam_bias.Clone(); } if (p.m_fillerParam_weights != null) { m_fillerParam_weights = p.m_fillerParam_weights.Clone(); } m_nAxis = p.m_nAxis; m_bTranspose = p.m_bTranspose; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { base.Copy(src); if (src is RecurrentParameter) { RecurrentParameter p = (RecurrentParameter)src; m_nNumOutput = p.num_output; m_weight_filler = p.weight_filler.Clone(); m_bias_filler = p.bias_filler.Clone(); m_bDebugInfo = p.debug_info; m_bExposeHiddenInput = p.expose_hidden_input; m_bExposeHiddenOutput = p.expose_hidden_output; m_dfDropoutRatio = p.dropout_ratio; m_lDropoutSeed = p.dropout_seed; m_nNumLayers = p.num_layers; m_bBidirectional = p.bidirectional; m_bCudnnEnableTensorCores = p.m_bCudnnEnableTensorCores; } }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { TransformationParameter p = (TransformationParameter)src; m_bUseImageDbMean = p.m_bUseImageDbMean; m_bForceColor = p.m_bForceColor; m_bForceGray = p.m_bForceGray; m_bMirror = p.m_bMirror; m_dfScale = p.m_dfScale; m_nCropSize = p.m_nCropSize; m_rgMeanValue = Utility.Clone <double>(p.m_rgMeanValue); m_dfForcedPositiveRangeMax = p.m_dfForcedPositiveRangeMax; m_nRandomSeed = p.m_nRandomSeed; m_strMeanFile = p.m_strMeanFile; m_colorOrder = p.m_colorOrder; m_resize = (p.resize_param != null) ? p.resize_param.Clone() : null; m_noise = (p.noise_param != null) ? p.noise_param.Clone() : null; m_distortion = (p.distortion_param != null) ? p.distortion_param.Clone() : null; m_expansion = (p.expansion_param != null) ? p.expansion_param.Clone() : null; m_emitConstraint = (p.emit_constraint != null) ? p.emit_constraint.Clone() : null; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { ThresholdParameter p = (ThresholdParameter)src; m_dfThreshold = p.m_dfThreshold; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { DataNormalizerParameter p = (DataNormalizerParameter)src; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { TVLossParameter p = (TVLossParameter)src; m_fBeta = p.m_fBeta; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { TileParameter p = (TileParameter)src; m_nAxis = p.m_nAxis; m_nTiles = p.m_nTiles; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { DebugParameter p = (DebugParameter)src; m_nMaxBatchesToStore = p.m_nMaxBatchesToStore; }
/// <summary> /// Copy on parameter to another. /// </summary> /// <param name="src">Specifies the parameter to copy.</param> public abstract void Copy(LayerParameterBase src);
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { MathParameter p = (MathParameter)src; m_function = p.m_function; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { HingeLossParameter p = (HingeLossParameter)src; m_norm = p.m_norm; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { TripletLossParameter p = (TripletLossParameter)src; m_dfAlpha = p.m_dfAlpha; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { ParameterParameter p = (ParameterParameter)src; m_shape = p.m_shape.Clone(); }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { EngineParameter p = (EngineParameter)src; m_engine = p.m_engine; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { EluParameter p = (EluParameter)src; m_dfAlpha = p.m_dfAlpha; }
/** @copydoc LayerParameterBase::Copy */ public override void Copy(LayerParameterBase src) { Normalization1Parameter p = (Normalization1Parameter)src; m_norm = p.m_norm; }