public override int GetHashCode() { int hash = 1; if (algorithmCase_ == AlgorithmOneofCase.SelectedAlgorithm) { hash ^= SelectedAlgorithm.GetHashCode(); } if (AlphaReal != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AlphaReal); } if (AlphaImag != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AlphaImag); } if (Beta != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Beta); } if (dotDimensionNumbers_ != null) { hash ^= DotDimensionNumbers.GetHashCode(); } if (BatchSize != 0L) { hash ^= BatchSize.GetHashCode(); } hash ^= (int)algorithmCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(GemmBackendConfig other) { if (other == null) { return; } if (other.AlphaReal != 0D) { AlphaReal = other.AlphaReal; } if (other.AlphaImag != 0D) { AlphaImag = other.AlphaImag; } if (other.Beta != 0D) { Beta = other.Beta; } if (other.dotDimensionNumbers_ != null) { if (dotDimensionNumbers_ == null) { DotDimensionNumbers = new global::Xla.DotDimensionNumbers(); } DotDimensionNumbers.MergeFrom(other.DotDimensionNumbers); } if (other.BatchSize != 0L) { BatchSize = other.BatchSize; } switch (other.AlgorithmCase) { case AlgorithmOneofCase.SelectedAlgorithm: SelectedAlgorithm = other.SelectedAlgorithm; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }