/// <summary> /// Writes the layer as XML /// </summary> /// <param name="writer">The XML writer</param> public void WriteTo(XmlWriter writer) { writer.WriteStartElement("convolutional-layer"); writer.WriteAttributeString("type", Type.ToString()); writer.WriteAttributeString("filter-width", FilterWidth.ToString()); writer.WriteAttributeString("filter-height", FilterHeight.ToString()); writer.WriteAttributeString("stride", Stride.ToString()); if (Padding > 0) { writer.WriteAttributeString("pading", Padding.ToString()); } if (Data != null) { Data.WriteTo(writer); } writer.WriteEndElement(); }
public override string ToString() { return(Stride.ToString() + ": " + Count.ToString() + ": " + Flags.ToString() + ": " + Types.ToString()); }