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

        if (BrainName.Length != 0)
        {
            hash ^= BrainName.GetHashCode();
        }
        hash ^= lastStates_.GetHashCode();
        hash ^= lastActionsContinous_.GetHashCode();
        hash ^= lastActionsDiscrete_.GetHashCode();
        hash ^= states_.GetHashCode();
        if (Reward != 0F)
        {
            hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Reward);
        }
        hash ^= memories_.GetHashCode();
        if (Done != 0)
        {
            hash ^= Done.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= vectorActionSizeDeprecated_.GetHashCode();
            hash ^= vectorActionDescriptionsDeprecated_.GetHashCode();
            if (VectorActionSpaceTypeDeprecated != 0)
            {
                hash ^= VectorActionSpaceTypeDeprecated.GetHashCode();
            }
            if (BrainName.Length != 0)
            {
                hash ^= BrainName.GetHashCode();
            }
            if (IsTraining != false)
            {
                hash ^= IsTraining.GetHashCode();
            }
            if (actionSpec_ != null)
            {
                hash ^= ActionSpec.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 4
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (BrainName.Length != 0)
        {
            hash ^= BrainName.GetHashCode();
        }
        hash ^= actionsContinous_.GetHashCode();
        hash ^= actionsDiscrete_.GetHashCode();
        if (ResetNeeded != 0)
        {
            hash ^= ResetNeeded.GetHashCode();
        }
        if (IsDone != 0)
        {
            hash ^= IsDone.GetHashCode();
        }
        if (_unknownFields != null)
        {
            hash ^= _unknownFields.GetHashCode();
        }
        return(hash);
    }
Exemplo n.º 5
0
        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);
        }