Example #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 10: {
                    if (shape_ == null)
                    {
                        Shape = new global::Tensorflow.TensorShapeProto();
                    }
                    input.ReadMessage(Shape);
                    break;
                }

                case 34: {
                    if (handleData_ == null)
                    {
                        HandleData = new global::Tensorflow.CppShapeInferenceResult.Types.HandleData();
                    }
                    input.ReadMessage(HandleData);
                    break;
                }
                }
            }
        }
Example #2
0
 public void MergeFrom(CppShapeInferenceResult other)
 {
     if (other == null)
     {
         return;
     }
     if (other.shape_ != null)
     {
         if (shape_ == null)
         {
             Shape = new global::Tensorflow.TensorShapeProto();
         }
         Shape.MergeFrom(other.Shape);
     }
     if (other.handleData_ != null)
     {
         if (handleData_ == null)
         {
             HandleData = new global::Tensorflow.CppShapeInferenceResult.Types.HandleData();
         }
         HandleData.MergeFrom(other.HandleData);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }