Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (OptimizeTensorLayout != false)
            {
                hash ^= OptimizeTensorLayout.GetHashCode();
            }
            if (ConstantFolding != 0)
            {
                hash ^= ConstantFolding.GetHashCode();
            }
            if (ArithmeticOptimization != 0)
            {
                hash ^= ArithmeticOptimization.GetHashCode();
            }
            if (DisableModelPruning != false)
            {
                hash ^= DisableModelPruning.GetHashCode();
            }
            if (MemoryOptimization != 0)
            {
                hash ^= MemoryOptimization.GetHashCode();
            }
            if (MemoryOptimizerTargetNodeNamePrefix.Length != 0)
            {
                hash ^= MemoryOptimizerTargetNodeNamePrefix.GetHashCode();
            }
            if (autoParallel_ != null)
            {
                hash ^= AutoParallel.GetHashCode();
            }
            hash ^= optimizers_.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (LayoutOptimizer != 0)
            {
                hash ^= LayoutOptimizer.GetHashCode();
            }
            if (ConstantFolding != 0)
            {
                hash ^= ConstantFolding.GetHashCode();
            }
            if (ArithmeticOptimization != 0)
            {
                hash ^= ArithmeticOptimization.GetHashCode();
            }
            if (DependencyOptimization != 0)
            {
                hash ^= DependencyOptimization.GetHashCode();
            }
            if (DisableModelPruning != false)
            {
                hash ^= DisableModelPruning.GetHashCode();
            }
            if (MemoryOptimization != 0)
            {
                hash ^= MemoryOptimization.GetHashCode();
            }
            if (MemoryOptimizerTargetNodeNamePrefix.Length != 0)
            {
                hash ^= MemoryOptimizerTargetNodeNamePrefix.GetHashCode();
            }
            if (autoParallel_ != null)
            {
                hash ^= AutoParallel.GetHashCode();
            }
            hash ^= optimizers_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }