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); }
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); }