예제 #1
0
 public void MergeFrom(CondContextDef other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ContextName.Length != 0)
     {
         ContextName = other.ContextName;
     }
     if (other.PredName.Length != 0)
     {
         PredName = other.PredName;
     }
     if (other.PivotName.Length != 0)
     {
         PivotName = other.PivotName;
     }
     if (other.Branch != 0)
     {
         Branch = other.Branch;
     }
     if (other.valuesDef_ != null)
     {
         if (valuesDef_ == null)
         {
             valuesDef_ = new global::Tensorflow.ValuesDef();
         }
         ValuesDef.MergeFrom(other.ValuesDef);
     }
 }
예제 #2
0
 public void MergeFrom(WhileContextDef other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ContextName.Length != 0)
     {
         ContextName = other.ContextName;
     }
     if (other.ParallelIterations != 0)
     {
         ParallelIterations = other.ParallelIterations;
     }
     if (other.BackProp != false)
     {
         BackProp = other.BackProp;
     }
     if (other.SwapMemory != false)
     {
         SwapMemory = other.SwapMemory;
     }
     if (other.PivotName.Length != 0)
     {
         PivotName = other.PivotName;
     }
     if (other.PivotForPredName.Length != 0)
     {
         PivotForPredName = other.PivotForPredName;
     }
     if (other.PivotForBodyName.Length != 0)
     {
         PivotForBodyName = other.PivotForBodyName;
     }
     loopExitNames_.Add(other.loopExitNames_);
     loopEnterNames_.Add(other.loopEnterNames_);
     if (other.valuesDef_ != null)
     {
         if (valuesDef_ == null)
         {
             valuesDef_ = new global::Tensorflow.ValuesDef();
         }
         ValuesDef.MergeFrom(other.ValuesDef);
     }
     if (other.MaximumIterationsName.Length != 0)
     {
         MaximumIterationsName = other.MaximumIterationsName;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    ContextName = input.ReadString();
                    break;
                }

                case 18: {
                    PredName = input.ReadString();
                    break;
                }

                case 26: {
                    PivotName = input.ReadString();
                    break;
                }

                case 32: {
                    Branch = input.ReadInt32();
                    break;
                }

                case 42: {
                    if (valuesDef_ == null)
                    {
                        valuesDef_ = new global::Tensorflow.ValuesDef();
                    }
                    input.ReadMessage(valuesDef_);
                    break;
                }
                }
            }
        }
예제 #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    ContextName = input.ReadString();
                    break;
                }

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

                case 24: {
                    BackProp = input.ReadBool();
                    break;
                }

                case 32: {
                    SwapMemory = input.ReadBool();
                    break;
                }

                case 42: {
                    PivotName = input.ReadString();
                    break;
                }

                case 50: {
                    PivotForPredName = input.ReadString();
                    break;
                }

                case 58: {
                    PivotForBodyName = input.ReadString();
                    break;
                }

                case 66: {
                    loopExitNames_.AddEntriesFrom(input, _repeated_loopExitNames_codec);
                    break;
                }

                case 74: {
                    if (valuesDef_ == null)
                    {
                        valuesDef_ = new global::Tensorflow.ValuesDef();
                    }
                    input.ReadMessage(valuesDef_);
                    break;
                }

                case 82: {
                    loopEnterNames_.AddEntriesFrom(input, _repeated_loopEnterNames_codec);
                    break;
                }
                }
            }
        }