public void MergeFrom(ConvolutionProto other) { if (other == null) { return; } if (other.Kind != 0) { Kind = other.Kind; } if (other.input_ != null) { if (input_ == null) { Input = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Input.MergeFrom(other.Input); } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Filter.MergeFrom(other.Filter); } if (other.output_ != null) { if (output_ == null) { Output = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Output.MergeFrom(other.Output); } if (other.convDesc_ != null) { if (convDesc_ == null) { ConvDesc = new global::StreamExecutor.Dnn.ConvolutionDescriptorProto(); } ConvDesc.MergeFrom(other.ConvDesc); } if (other.ConvScale != 0D) { ConvScale = other.ConvScale; } if (other.SideValueScale != 0D) { SideValueScale = other.SideValueScale; } if (other.Activation != 0) { Activation = other.Activation; } if (other.InputAddress != 0L) { InputAddress = other.InputAddress; } if (other.FilterAddress != 0L) { FilterAddress = other.FilterAddress; } if (other.OutputAddress != 0L) { OutputAddress = other.OutputAddress; } if (other.BiasAddress != 0L) { BiasAddress = other.BiasAddress; } if (other.SideInputAddress != 0L) { SideInputAddress = other.SideInputAddress; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Kind != 0) { hash ^= Kind.GetHashCode(); } if (input_ != null) { hash ^= Input.GetHashCode(); } if (filter_ != null) { hash ^= Filter.GetHashCode(); } if (output_ != null) { hash ^= Output.GetHashCode(); } if (convDesc_ != null) { hash ^= ConvDesc.GetHashCode(); } if (ConvScale != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(ConvScale); } if (SideValueScale != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SideValueScale); } if (Activation != 0) { hash ^= Activation.GetHashCode(); } if (InputAddress != 0L) { hash ^= InputAddress.GetHashCode(); } if (FilterAddress != 0L) { hash ^= FilterAddress.GetHashCode(); } if (OutputAddress != 0L) { hash ^= OutputAddress.GetHashCode(); } if (BiasAddress != 0L) { hash ^= BiasAddress.GetHashCode(); } if (SideInputAddress != 0L) { hash ^= SideInputAddress.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }