Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (isset.serialized_rows)
                {
                    hashcode = (hashcode * 397) + Serialized_rows.GetHashCode();
                }
                if (isset.execution_finished)
                {
                    hashcode = (hashcode * 397) + Execution_finished.GetHashCode();
                }
                if (isset.merge_type)
                {
                    hashcode = (hashcode * 397) + Merge_type.GetHashCode();
                }
                if (isset.sharded)
                {
                    hashcode = (hashcode * 397) + Sharded.GetHashCode();
                }
                if (isset.row_desc)
                {
                    hashcode = (hashcode * 397) + Row_desc.GetHashCode();
                }
                if (isset.node_id)
                {
                    hashcode = (hashcode * 397) + Node_id.GetHashCode();
                }
            }
            return(hashcode);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FilenameTensorName.Length != 0)
            {
                hash ^= FilenameTensorName.GetHashCode();
            }
            if (SaveTensorName.Length != 0)
            {
                hash ^= SaveTensorName.GetHashCode();
            }
            if (RestoreOpName.Length != 0)
            {
                hash ^= RestoreOpName.GetHashCode();
            }
            if (MaxToKeep != 0)
            {
                hash ^= MaxToKeep.GetHashCode();
            }
            if (Sharded != false)
            {
                hash ^= Sharded.GetHashCode();
            }
            if (KeepCheckpointEveryNHours != 0F)
            {
                hash ^= KeepCheckpointEveryNHours.GetHashCode();
            }
            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FilenameTensorName.Length != 0)
            {
                hash ^= FilenameTensorName.GetHashCode();
            }
            if (SaveTensorName.Length != 0)
            {
                hash ^= SaveTensorName.GetHashCode();
            }
            if (RestoreOpName.Length != 0)
            {
                hash ^= RestoreOpName.GetHashCode();
            }
            if (MaxToKeep != 0)
            {
                hash ^= MaxToKeep.GetHashCode();
            }
            if (Sharded != false)
            {
                hash ^= Sharded.GetHashCode();
            }
            if (KeepCheckpointEveryNHours != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KeepCheckpointEveryNHours);
            }
            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }