Ejemplo n.º 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 (instruction_ == null)
                    {
                        Instruction = new global::Xla.HloInstructionProto();
                    }
                    input.ReadMessage(Instruction);
                    break;
                }

                case 18: {
                    operandShapes_.AddEntriesFrom(input, _repeated_operandShapes_codec);
                    break;
                }

                case 24: {
                    ResultAddress = input.ReadUInt64();
                    break;
                }

                case 34:
                case 32: {
                    operandAddresses_.AddEntriesFrom(input, _repeated_operandAddresses_codec);
                    break;
                }
                }
            }
        }
Ejemplo n.º 2
0
 public void MergeFrom(ConvInstructionLog other)
 {
     if (other == null)
     {
         return;
     }
     if (other.instruction_ != null)
     {
         if (instruction_ == null)
         {
             Instruction = new global::Xla.HloInstructionProto();
         }
         Instruction.MergeFrom(other.Instruction);
     }
     operandShapes_.Add(other.operandShapes_);
     if (other.ResultAddress != 0UL)
     {
         ResultAddress = other.ResultAddress;
     }
     operandAddresses_.Add(other.operandAddresses_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }