Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    BusId = input.ReadInt32();
                    break;
                }

                case 16: {
                    NumaNode = input.ReadInt32();
                    break;
                }

                case 26: {
                    if (links_ == null)
                    {
                        links_ = new global::Tensorflow.LocalLinks();
                    }
                    input.ReadMessage(links_);
                    break;
                }
                }
            }
        }
Beispiel #2
0
 public void MergeFrom(DeviceLocality other)
 {
     if (other == null)
     {
         return;
     }
     if (other.BusId != 0)
     {
         BusId = other.BusId;
     }
     if (other.NumaNode != 0)
     {
         NumaNode = other.NumaNode;
     }
     if (other.links_ != null)
     {
         if (links_ == null)
         {
             links_ = new global::Tensorflow.LocalLinks();
         }
         Links.MergeFrom(other.Links);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }