コード例 #1
0
ファイル: KernelDef.cs プロジェクト: Prolucid/fs-tf-serving
 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);
     }
 }
コード例 #2
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);
     }
 }
コード例 #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);
 }
コード例 #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);
 }