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

            if (VectorObservationSize != 0)
            {
                hash ^= VectorObservationSize.GetHashCode();
            }
            if (NumStackedVectorObservations != 0)
            {
                hash ^= NumStackedVectorObservations.GetHashCode();
            }
            hash ^= vectorActionSize_.GetHashCode();
            hash ^= cameraResolutions_.GetHashCode();
            hash ^= vectorActionDescriptions_.GetHashCode();
            if (VectorActionSpaceType != 0)
            {
                hash ^= VectorActionSpaceType.GetHashCode();
            }
            if (BrainName.Length != 0)
            {
                hash ^= BrainName.GetHashCode();
            }
            if (IsTraining != false)
            {
                hash ^= IsTraining.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= vectorActionSize_.GetHashCode();
            hash ^= vectorActionDescriptions_.GetHashCode();
            if (VectorActionSpaceType != global::MLAgents.CommunicatorObjects.SpaceTypeProto.Discrete)
            {
                hash ^= VectorActionSpaceType.GetHashCode();
            }
            if (BrainName.Length != 0)
            {
                hash ^= BrainName.GetHashCode();
            }
            if (IsTraining != false)
            {
                hash ^= IsTraining.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }