Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (ResizeScale != 0F)
            {
                hash ^= ResizeScale.GetHashCode();
            }
            if (InputOffsetY != 0)
            {
                hash ^= InputOffsetY.GetHashCode();
            }
            if (InputOffsetX != 0)
            {
                hash ^= InputOffsetX.GetHashCode();
            }
            if (CropHeight != 0)
            {
                hash ^= CropHeight.GetHashCode();
            }
            if (CropWidth != 0)
            {
                hash ^= CropWidth.GetHashCode();
            }
            if (MeanB != 0)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ParamFile.Length != 0)
            {
                hash ^= ParamFile.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (EngineFile.Length != 0)
            {
                hash ^= EngineFile.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (MinCropSize != 0)
            {
                hash ^= MinCropSize.GetHashCode();
            }
            if (CropMethod != 0)
            {
                hash ^= CropMethod.GetHashCode();
            }
            if (MeanB != 0F)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0F)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0F)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            if (CropScale != 0F)
            {
                hash ^= CropScale.GetHashCode();
            }
            if (InputBlobName.Length != 0)
            {
                hash ^= InputBlobName.GetHashCode();
            }
            if (ImParamBlobName.Length != 0)
            {
                hash ^= ImParamBlobName.GetHashCode();
            }
            if (OutputBlobName.Length != 0)
            {
                hash ^= OutputBlobName.GetHashCode();
            }
            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (MaxBatchSize != 0)
            {
                hash ^= MaxBatchSize.GetHashCode();
            }
            return(hash);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ModelName.Length != 0)
            {
                hash ^= ModelName.GetHashCode();
            }
            if (ModelType.Length != 0)
            {
                hash ^= ModelType.GetHashCode();
            }
            if (InputBlob.Length != 0)
            {
                hash ^= InputBlob.GetHashCode();
            }
            if (OutputBlob.Length != 0)
            {
                hash ^= OutputBlob.GetHashCode();
            }
            if (WeightFile.Length != 0)
            {
                hash ^= WeightFile.GetHashCode();
            }
            if (ProtoFile.Length != 0)
            {
                hash ^= ProtoFile.GetHashCode();
            }
            if (ClassifyThreshold != 0F)
            {
                hash ^= ClassifyThreshold.GetHashCode();
            }
            if (ClassifyResizeWidth != 0)
            {
                hash ^= ClassifyResizeWidth.GetHashCode();
            }
            if (ClassifyResizeHeight != 0)
            {
                hash ^= ClassifyResizeHeight.GetHashCode();
            }
            if (Scale != 0F)
            {
                hash ^= Scale.GetHashCode();
            }
            if (MeanB != 0F)
            {
                hash ^= MeanB.GetHashCode();
            }
            if (MeanG != 0F)
            {
                hash ^= MeanG.GetHashCode();
            }
            if (MeanR != 0F)
            {
                hash ^= MeanR.GetHashCode();
            }
            if (IsBgr != false)
            {
                hash ^= IsBgr.GetHashCode();
            }
            return(hash);
        }