/// <summary> /// Convert the parameter into a RawProto. /// </summary> /// <param name="strName">Specifies the name to associate with the RawProto.</param> /// <returns>The new RawProto is returned.</returns> public override RawProto ToProto(string strName) { RawProtoCollection rgChildren = new RawProtoCollection(); rgChildren.Add(m_shape.ToProto("shape")); return(new RawProto(strName, "", rgChildren)); }
/// <summary> /// Convert the parameter into a RawProto. /// </summary> /// <param name="strName">Specifies the name to associate with the RawProto.</param> /// <returns>The new RawProto is returned.</returns> public override RawProto ToProto(string strName) { RawProtoCollection rgChildren = new RawProtoCollection(); rgChildren.Add(m_outputShape.ToProto("output_shape")); rgChildren.Add <float>("valuef", m_rgF); if (!string.IsNullOrEmpty(m_strBinaryDataFile)) { rgChildren.Add("binary_data_file", replace(m_strBinaryDataFile, ' ', '~')); } return(new RawProto(strName, "", rgChildren)); }