Beispiel #1
0
 public void MergeFrom(AttrConstraint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.allowedValues_ != null)
     {
         if (allowedValues_ == null)
         {
             allowedValues_ = new global::Tensorflow.AttrValue();
         }
         AllowedValues.MergeFrom(other.AllowedValues);
     }
 }
 public void MergeFrom(AttrDefault other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.value_ != null)
     {
         if (value_ == null)
         {
             value_ = new global::Tensorflow.AttrValue();
         }
         Value.MergeFrom(other.Value);
     }
 }
Beispiel #3
0
 public void MergeFrom(AttrConstraint other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.allowedValues_ != null)
     {
         if (allowedValues_ == null)
         {
             AllowedValues = new global::Tensorflow.AttrValue();
         }
         AllowedValues.MergeFrom(other.AllowedValues);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #4
0
 public void MergeFrom(AttrDefault other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.value_ != null)
     {
         if (value_ == null)
         {
             value_ = new global::Tensorflow.AttrValue();
         }
         Value.MergeFrom(other.Value);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }