示例#1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MlagentsVersion.Length != 0)
            {
                hash ^= MlagentsVersion.GetHashCode();
            }
            if (MlagentsEnvsVersion.Length != 0)
            {
                hash ^= MlagentsEnvsVersion.GetHashCode();
            }
            if (PythonVersion.Length != 0)
            {
                hash ^= PythonVersion.GetHashCode();
            }
            if (TorchVersion.Length != 0)
            {
                hash ^= TorchVersion.GetHashCode();
            }
            if (TorchDeviceType.Length != 0)
            {
                hash ^= TorchDeviceType.GetHashCode();
            }
            if (NumEnvs != 0)
            {
                hash ^= NumEnvs.GetHashCode();
            }
            if (NumEnvironmentParameters != 0)
            {
                hash ^= NumEnvironmentParameters.GetHashCode();
            }
            if (RunOptions.Length != 0)
            {
                hash ^= RunOptions.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }