public void MergeFrom(AlgorithmBlacklistEntry other) { if (other == null) { return; } if (other.Hlo.Length != 0) { Hlo = other.Hlo; } if (other.cc_ != null) { if (cc_ == null) { Cc = new global::Tensorflow.ComputeCapability(); } Cc.MergeFrom(other.Cc); } if (other.cudnnVersion_ != null) { if (cudnnVersion_ == null) { CudnnVersion = new global::Tensorflow.CudnnVersion(); } CudnnVersion.MergeFrom(other.CudnnVersion); } if (other.BlasVersion.Length != 0) { BlasVersion = other.BlasVersion; } algos_.Add(other.algos_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Hlo.Length != 0) { hash ^= Hlo.GetHashCode(); } if (cc_ != null) { hash ^= Cc.GetHashCode(); } if (cudnnVersion_ != null) { hash ^= CudnnVersion.GetHashCode(); } if (BlasVersion.Length != 0) { hash ^= BlasVersion.GetHashCode(); } hash ^= algos_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }