Beispiel #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 8: {
                    SelectedAlgorithm = input.ReadInt64();
                    break;
                }

                case 17: {
                    AlphaReal = input.ReadDouble();
                    break;
                }

                case 25: {
                    Beta = input.ReadDouble();
                    break;
                }

                case 58: {
                    if (dotDimensionNumbers_ == null)
                    {
                        DotDimensionNumbers = new global::Xla.DotDimensionNumbers();
                    }
                    input.ReadMessage(DotDimensionNumbers);
                    break;
                }

                case 64: {
                    BatchSize = input.ReadInt64();
                    break;
                }

                case 73: {
                    AlphaImag = input.ReadDouble();
                    break;
                }
                }
            }
        }
Beispiel #2
0
        public void MergeFrom(GemmBackendConfig other)
        {
            if (other == null)
            {
                return;
            }
            if (other.AlphaReal != 0D)
            {
                AlphaReal = other.AlphaReal;
            }
            if (other.AlphaImag != 0D)
            {
                AlphaImag = other.AlphaImag;
            }
            if (other.Beta != 0D)
            {
                Beta = other.Beta;
            }
            if (other.dotDimensionNumbers_ != null)
            {
                if (dotDimensionNumbers_ == null)
                {
                    DotDimensionNumbers = new global::Xla.DotDimensionNumbers();
                }
                DotDimensionNumbers.MergeFrom(other.DotDimensionNumbers);
            }
            if (other.BatchSize != 0L)
            {
                BatchSize = other.BatchSize;
            }
            switch (other.AlgorithmCase)
            {
            case AlgorithmOneofCase.SelectedAlgorithm:
                SelectedAlgorithm = other.SelectedAlgorithm;
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }