public void MergeFrom(TensorDescription other) { if (other == null) { return; } if (other.Dtype != global::Tensorflow.DataType.DtInvalid) { Dtype = other.Dtype; } if (other.shape_ != null) { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.allocationDescription_ != null) { if (allocationDescription_ == null) { AllocationDescription = new global::Tensorflow.AllocationDescription(); } AllocationDescription.MergeFrom(other.AllocationDescription); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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::Tensorflow.TensorShapeProto(); } Shape.MergeFrom(other.Shape); } if (other.allocationDescription_ != null) { if (allocationDescription_ == null) { allocationDescription_ = new global::Tensorflow.AllocationDescription(); } AllocationDescription.MergeFrom(other.AllocationDescription); } }
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: { Dtype = (global::Tensorflow.DataType)input.ReadEnum(); break; } case 18: { if (shape_ == null) { Shape = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(Shape); break; } case 34: { if (allocationDescription_ == null) { AllocationDescription = new global::Tensorflow.AllocationDescription(); } input.ReadMessage(AllocationDescription); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { dtype_ = (global::Tensorflow.DataType)input.ReadEnum(); break; } case 18: { if (shape_ == null) { shape_ = new global::Tensorflow.TensorShapeProto(); } input.ReadMessage(shape_); break; } case 34: { if (allocationDescription_ == null) { allocationDescription_ = new global::Tensorflow.AllocationDescription(); } input.ReadMessage(allocationDescription_); break; } } } }