public IList <float> GetParam(ResNodeParamType paramType) { var paramName = ParamTypeToName(paramType); if (paramName == "") { return(null); } return(GetParam(paramName)); }
public void SetParam(ResNodeParamType paramType, float[] data) { var paramName = ParamTypeToName(paramType); if (paramName == "") { return; } SetParam(paramName, data); }
private string ParamTypeToName(ResNodeParamType type) { string paramName = ""; switch (type) { case ResNodeParamType.Bias_LayerOne: paramName = Name + ".Res1" + Layers.BiasSuffix; break; case ResNodeParamType.Bias_LayerTwo: paramName = Name + ".Res2" + Layers.BiasSuffix; break; case ResNodeParamType.Weight_LayerOne: paramName = Name + ".Res1" + Layers.WeightSuffix; break; case ResNodeParamType.Weight_LayerTwo: paramName = Name + ".Res2" + Layers.WeightSuffix; break; } return(paramName); }