Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (BatchSize != 0)
            {
                hash ^= BatchSize.GetHashCode();
            }
            if (NumVisualizations != 0)
            {
                hash ^= NumVisualizations.GetHashCode();
            }
            if (NumExamples != 0)
            {
                hash ^= NumExamples.GetHashCode();
            }
            if (EvalIntervalSecs != 0)
            {
                hash ^= EvalIntervalSecs.GetHashCode();
            }
            if (MaxEvals != 0)
            {
                hash ^= MaxEvals.GetHashCode();
            }
            if (SaveGraph != false)
            {
                hash ^= SaveGraph.GetHashCode();
            }
            if (VisualizationExportDir.Length != 0)
            {
                hash ^= VisualizationExportDir.GetHashCode();
            }
            if (EvalMaster.Length != 0)
            {
                hash ^= EvalMaster.GetHashCode();
            }
            hash ^= metricsSet_.GetHashCode();
            if (ExportPath.Length != 0)
            {
                hash ^= ExportPath.GetHashCode();
            }
            if (IgnoreGroundtruth != false)
            {
                hash ^= IgnoreGroundtruth.GetHashCode();
            }
            if (UseMovingAverages != false)
            {
                hash ^= UseMovingAverages.GetHashCode();
            }
            if (EvalInstanceMasks != false)
            {
                hash ^= EvalInstanceMasks.GetHashCode();
            }
            if (MinScoreThreshold != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinScoreThreshold);
            }
            if (MaxNumBoxesToVisualize != 0)
            {
                hash ^= MaxNumBoxesToVisualize.GetHashCode();
            }
            if (SkipScores != false)
            {
                hash ^= SkipScores.GetHashCode();
            }
            if (SkipLabels != false)
            {
                hash ^= SkipLabels.GetHashCode();
            }
            if (VisualizeGroundtruthBoxes != false)
            {
                hash ^= VisualizeGroundtruthBoxes.GetHashCode();
            }
            if (GroundtruthBoxVisualizationColor.Length != 0)
            {
                hash ^= GroundtruthBoxVisualizationColor.GetHashCode();
            }
            if (KeepImageIdForVisualizationExport != false)
            {
                hash ^= KeepImageIdForVisualizationExport.GetHashCode();
            }
            if (RetainOriginalImages != false)
            {
                hash ^= RetainOriginalImages.GetHashCode();
            }
            if (IncludeMetricsPerCategory != false)
            {
                hash ^= IncludeMetricsPerCategory.GetHashCode();
            }
            if (RecallLowerBound != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RecallLowerBound);
            }
            if (RecallUpperBound != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RecallUpperBound);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
 // Override object.GetHashCode
 public override int GetHashCode()
 {
     return(Name.GetHashCode() ^ ExportPath.GetHashCode() ^ SaveFile.GetHashCode());
 }