/// <summary> /// Compare this LayerDebugInformation to another. /// </summary> /// <param name="dbg">Specifies the other LayerDebugInformation to compare to.</param> /// <returns>If the two LayerDebugInformation's are the same, <i>true</i> is returned, otherwise <i>false</i> is returned.</returns> public bool Compare(LayerDebugInformation <T> dbg) { if (dbg.Name != m_strName) { return(false); } if (dbg.Type != m_strType) { return(false); } if (dbg.m_rgBlobInfo.Count != m_rgBlobInfo.Count) { return(false); } for (int i = 0; i < m_rgBlobInfo.Count; i++) { if (!dbg.m_rgBlobInfo[i].Compare(m_rgBlobInfo[i])) { return(false); } } return(true); }
/// <summary> /// Searches for the last NaN within any of the Layers. /// </summary> /// <param name="strType">Returns the Layer type for which a NaN was detected (if any).</param> /// <returns>If found, the name of the Blob in which a NaN was detected is returned, otherwise <i>null</i> is returned.</returns> public string DetectLastNaN(out string strType) { for (int i = m_rgLayerInfo.Count - 1; i >= 0; i--) { LayerDebugInformation <T> dbg = m_rgLayerInfo[i]; string strBlobNan = dbg.DetectLastNaN(out strType); if (strBlobNan != null) { return(strBlobNan); } } strType = null; return(null); }