public void MergeFrom(WhileContextDef other) { if (other == null) { return; } if (other.ContextName.Length != 0) { ContextName = other.ContextName; } if (other.ParallelIterations != 0) { ParallelIterations = other.ParallelIterations; } if (other.BackProp != false) { BackProp = other.BackProp; } if (other.SwapMemory != false) { SwapMemory = other.SwapMemory; } if (other.PivotName.Length != 0) { PivotName = other.PivotName; } if (other.PivotForPredName.Length != 0) { PivotForPredName = other.PivotForPredName; } if (other.PivotForBodyName.Length != 0) { PivotForBodyName = other.PivotForBodyName; } loopExitNames_.Add(other.loopExitNames_); loopEnterNames_.Add(other.loopEnterNames_); if (other.valuesDef_ != null) { if (valuesDef_ == null) { valuesDef_ = new global::Tensorflow.ValuesDef(); } ValuesDef.MergeFrom(other.ValuesDef); } if (other.MaximumIterationsName.Length != 0) { MaximumIterationsName = other.MaximumIterationsName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ContextName.Length != 0) { hash ^= ContextName.GetHashCode(); } if (ParallelIterations != 0) { hash ^= ParallelIterations.GetHashCode(); } if (BackProp != false) { hash ^= BackProp.GetHashCode(); } if (SwapMemory != false) { hash ^= SwapMemory.GetHashCode(); } if (PivotName.Length != 0) { hash ^= PivotName.GetHashCode(); } if (PivotForPredName.Length != 0) { hash ^= PivotForPredName.GetHashCode(); } if (PivotForBodyName.Length != 0) { hash ^= PivotForBodyName.GetHashCode(); } hash ^= loopExitNames_.GetHashCode(); hash ^= loopEnterNames_.GetHashCode(); if (valuesDef_ != null) { hash ^= ValuesDef.GetHashCode(); } if (MaximumIterationsName.Length != 0) { hash ^= MaximumIterationsName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }