Esempio n. 1
0
            /// <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();
            }
Esempio n. 2
0
 public override string ToString()
 {
     return(Stride.ToString() + ": " + Count.ToString() + ": " + Flags.ToString() + ": " + Types.ToString());
 }