public void MergeFrom(TensorDescription other) { if (other == null) { return; } if (other.Dtype != 0) { Dtype = other.Dtype; } if (other.shape_ != null) { if (shape_ == null) { shape_ = new global::Vision.Tensorflow.Proto.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.allocationDescription_ != null) { if (allocationDescription_ == null) { allocationDescription_ = new global::Vision.Tensorflow.Proto.AllocationDescription(); } AllocationDescription.MergeFrom(other.AllocationDescription); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { dtype_ = (global::Vision.Tensorflow.Proto.DataType)input.ReadEnum(); break; } case 18: { if (shape_ == null) { shape_ = new global::Vision.Tensorflow.Proto.TensorShapeProto(); } input.ReadMessage(shape_); break; } case 34: { if (allocationDescription_ == null) { allocationDescription_ = new global::Vision.Tensorflow.Proto.AllocationDescription(); } input.ReadMessage(allocationDescription_); break; } } } }