コード例 #1
0
ファイル: Matcher.cs プロジェクト: xiaodelea/TensorFlow.NET
        public void MergeFrom(Matcher other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.MatcherOneofCase)
            {
            case MatcherOneofOneofCase.ArgmaxMatcher:
                if (ArgmaxMatcher == null)
                {
                    ArgmaxMatcher = new global::Tensorflow.Models.ObjectDetection.Protos.ArgMaxMatcher();
                }
                ArgmaxMatcher.MergeFrom(other.ArgmaxMatcher);
                break;

            case MatcherOneofOneofCase.BipartiteMatcher:
                if (BipartiteMatcher == null)
                {
                    BipartiteMatcher = new global::Tensorflow.Models.ObjectDetection.Protos.BipartiteMatcher();
                }
                BipartiteMatcher.MergeFrom(other.BipartiteMatcher);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
コード例 #2
0
ファイル: Matcher.cs プロジェクト: xiaodelea/TensorFlow.NET
        public override int GetHashCode()
        {
            int hash = 1;

            if (matcherOneofCase_ == MatcherOneofOneofCase.ArgmaxMatcher)
            {
                hash ^= ArgmaxMatcher.GetHashCode();
            }
            if (matcherOneofCase_ == MatcherOneofOneofCase.BipartiteMatcher)
            {
                hash ^= BipartiteMatcher.GetHashCode();
            }
            hash ^= (int)matcherOneofCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }