Graph rewriting is experimental and subject to change, not covered by any API stability guarantees.
tensorflow.RewriterConfig
الأساليب العامة
RewriterConfig.Builder | addAllCustomOptimizers (Iterable<? يمتد RewriterConfig.CustomGraphOptimizer > القيم) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | addAllOptimizers (قيم Iterable<String>) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Builder | addCustomOptimizers ( RewriterConfig.CustomGraphOptimizer.Builder builderForValue) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | addCustomOptimizers (مؤشر int، RewriterConfig.CustomGraphOptimizer.Builder builderForValue) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | addCustomOptimizers (قيمة RewriterConfig.CustomGraphOptimizer ) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | addCustomOptimizers (مؤشر int، قيمة RewriterConfig.CustomGraphOptimizer ) list of CustomGraphOptimizers to apply. |
RewriterConfig.CustomGraphOptimizer.Builder | addCustomOptimizersBuilder (فهرس كثافة العمليات) list of CustomGraphOptimizers to apply. |
RewriterConfig.CustomGraphOptimizer.Builder | addCustomOptimizersBuilder () list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | addOptimizers (قيمة السلسلة) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Builder | addOptimizersBytes (قيمة com.google.protobuf.ByteString) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Builder | addRepeatedField (حقل com.google.protobuf.Descriptors.FieldDescriptor، قيمة الكائن) |
إعادة كتابة التكوين | يبني () |
إعادة كتابة التكوين | بناء جزئي () |
RewriterConfig.Builder | واضح () |
RewriterConfig.Builder | ClearArithmeticOptimization () Arithmetic optimizations (default is ON) e.g. |
RewriterConfig.Builder | ClearAutoMixedPrecision () Optimize data types for CUDA (default is OFF). |
RewriterConfig.Builder | ClearAutoMixedPrecisionMkl () Optimize data types for MKL (default is OFF). |
RewriterConfig.Builder | كلير أوتو باراليل () Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
RewriterConfig.Builder | ClearCommonSubgraphElivation () Common subgraph elimination (default is ON) e.g. |
RewriterConfig.Builder | ClearConstantFolding () Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants. |
RewriterConfig.Builder | ClearCpuLayoutConversion () CPU Conversion settings between NHCW and NCHW. |
RewriterConfig.Builder | ClearCustomOptimizers () list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | كلير ديبوغ ستريبر () Strips debug-related nodes from the graph (off by default). |
RewriterConfig.Builder | تحسين التبعية الواضحة () Control dependency optimizations (default is ON). |
RewriterConfig.Builder | كلير ديسابلي ميتا أوبتيمايزر () Disable the entire meta optimizer (off by default). |
RewriterConfig.Builder | ClearDisableModelPruning () If true, don't remove unnecessary ops from the graph bool disable_model_pruning = 2; |
RewriterConfig.Builder | ClearExperimentalDisableCompressedTensorOptimization () Disable optimizations that assume compressed tensors. |
RewriterConfig.Builder | ClearFailOnOptimizerErrors () If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. |
RewriterConfig.Builder | ClearField (حقل com.google.protobuf.Descriptors.FieldDescriptor) |
RewriterConfig.Builder | تحسين وظيفة واضحة () Function optimizations (default is ON). |
RewriterConfig.Builder | واضحImplementationSelector () Enable the swap of kernel implementations based on the device placement (default is ON). |
RewriterConfig.Builder | ClearInterOptimizerVerifierConfig () VerifierConfig specifying the verifiers to be run after every optimizer. |
RewriterConfig.Builder | ClearLayoutOptimizer () Optimize tensor layouts (default is ON) e.g. |
RewriterConfig.Builder | تحسين كليرلوب () Loop optimizations (default is ON). |
RewriterConfig.Builder | تحسين الذاكرة الواضحة () Configures memory optimization passes through the meta-optimizer. |
RewriterConfig.Builder | ClearMemoryOptimizerTargetNodeNameScope () A node name scope for node names which are valid outputs of recomputations. |
RewriterConfig.Builder | ClearMetaOptimizerIterations () Controls how many times we run the optimizers in meta optimizer (default is once). |
RewriterConfig.Builder | ClearMetaOptimizerTimeoutMs () Maximum number of milliseconds to spend optimizing a single graph before timing out. |
RewriterConfig.Builder | ClearMinGraphNodes () The minimum number of nodes in a graph to optimizer. |
RewriterConfig.Builder | ClearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RewriterConfig.Builder | كليرأوبتيمايزر () If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Builder | ClearPinToHostOptimization () Force small ops onto the CPU (default is OFF). |
RewriterConfig.Builder | ClearPostOptimizationVerifierConfig () VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
RewriterConfig.Builder | إعادة تعيين واضحة () Remapping (default is ON) Remap subgraphs onto more efficient implementations. |
RewriterConfig.Builder | ClearScopedAllocatorOptimization () Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default). |
RewriterConfig.Builder | ClearScopedAllocatorOpts () .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Builder | تحسين الشكل الواضح () Shape optimizations (default is ON) Simplify computations made on shapes. |
RewriterConfig.Builder | استنساخ () |
RewriterConfig.Toggle | الحصول على التحسين الحسابي () Arithmetic optimizations (default is ON) e.g. |
كثافة العمليات | الحصول على قيمة التحسين الحسابي () Arithmetic optimizations (default is ON) e.g. |
RewriterConfig.Toggle | الحصول على AutoMixedPrecision () Optimize data types for CUDA (default is OFF). |
RewriterConfig.Toggle | الحصول على AutoMixedPrecisionMkl () Optimize data types for MKL (default is OFF). |
كثافة العمليات | الحصول على AutoMixedPrecisionMklValue () Optimize data types for MKL (default is OFF). |
كثافة العمليات | الحصول على AutoMixedPrecisionValue () Optimize data types for CUDA (default is OFF). |
خيارات التوازي التلقائي | الحصول على AutoParallel () Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
AutoParallelOptions.Builder | الحصول على AutoParallelBuilder () Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
AutoParallelOptionsOrBuilder | الحصول على AutoParallelOrBuilder () Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
RewriterConfig.Toggle | getCommonSubgraphElivation () Common subgraph elimination (default is ON) e.g. |
كثافة العمليات | getCommonSubgraphElivationValue () Common subgraph elimination (default is ON) e.g. |
RewriterConfig.Toggle | getConstantFolding () Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants. |
كثافة العمليات | getConstantFoldingValue () Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants. |
RewriterConfig.CpuLayout | الحصول على CpuLayoutConversion () CPU Conversion settings between NHCW and NCHW. |
كثافة العمليات | getCpuLayoutConversionValue () CPU Conversion settings between NHCW and NCHW. |
RewriterConfig.CustomGraphOptimizer | getCustomOptimizers (فهرس كثافة العمليات) list of CustomGraphOptimizers to apply. |
RewriterConfig.CustomGraphOptimizer.Builder | getCustomOptimizersBuilder (فهرس كثافة العمليات) list of CustomGraphOptimizers to apply. |
القائمة< RewriterConfig.CustomGraphOptimizer.Builder > | getCustomOptimizersBuilderList () list of CustomGraphOptimizers to apply. |
كثافة العمليات | الحصول علىCustomOptimizersCount () list of CustomGraphOptimizers to apply. |
القائمة< RewriterConfig.CustomGraphOptimizer > | قائمة getCustomOptimizers () list of CustomGraphOptimizers to apply. |
RewriterConfig.CustomGraphOptimizerOrBuilder | getCustomOptimizersOrBuilder (فهرس كثافة العمليات) list of CustomGraphOptimizers to apply. |
القائمة<؟ يمتد RewriterConfig.CustomGraphOptimizerOrBuilder > | getCustomOptimizersOrBuilderList () list of CustomGraphOptimizers to apply. |
RewriterConfig.Toggle | الحصول على DebugStripper () Strips debug-related nodes from the graph (off by default). |
كثافة العمليات | getDebugStripperValue () Strips debug-related nodes from the graph (off by default). |
إعادة كتابة التكوين | |
RewriterConfig.Toggle | الحصول على التبعية () Control dependency optimizations (default is ON). |
كثافة العمليات | الحصول على قيمة التبعية () Control dependency optimizations (default is ON). |
النهائي الثابت com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
منطقية | الحصول على DisableMetaOptimizer () Disable the entire meta optimizer (off by default). |
منطقية | getDisableModelPruning () If true, don't remove unnecessary ops from the graph bool disable_model_pruning = 2; |
منطقية | getExperimentalDisableCompressedTensorOptimization () Disable optimizations that assume compressed tensors. |
منطقية | getFailOnOptimizerErrors () If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. |
RewriterConfig.Toggle | الحصول على الوظيفة الأمثل () Function optimizations (default is ON). |
كثافة العمليات | getFunctionOptimizationValue () Function optimizations (default is ON). |
RewriterConfig.Toggle | GetImplementationSelector () Enable the swap of kernel implementations based on the device placement (default is ON). |
كثافة العمليات | الحصول علىImplementationSelectorValue () Enable the swap of kernel implementations based on the device placement (default is ON). |
تكوين التحقق | getInterOptimizerVerifierConfig () VerifierConfig specifying the verifiers to be run after every optimizer. |
VerifierConfig.Builder | getInterOptimizerVerifierConfigBuilder () VerifierConfig specifying the verifiers to be run after every optimizer. |
VerifierConfigOrBuilder | getInterOptimizerVerifierConfigOrBuilder () VerifierConfig specifying the verifiers to be run after every optimizer. |
RewriterConfig.Toggle | الحصول على LayoutOptimizer () Optimize tensor layouts (default is ON) e.g. |
كثافة العمليات | الحصول على LayoutOptimizerValue () Optimize tensor layouts (default is ON) e.g. |
RewriterConfig.Toggle | الحصول على LoopOptimization () Loop optimizations (default is ON). |
كثافة العمليات | getLoopOptimizationValue () Loop optimizations (default is ON). |
RewriterConfig.MemOptType | تحسين الذاكرة () Configures memory optimization passes through the meta-optimizer. |
كثافة العمليات | الحصول على قيمة الذاكرة الأمثل () Configures memory optimization passes through the meta-optimizer. |
خيط | getMemoryOptimizerTargetNodeNameScope () A node name scope for node names which are valid outputs of recomputations. |
com.google.protobuf.ByteString | getMemoryOptimizerTargetNodeNameScopeBytes () A node name scope for node names which are valid outputs of recomputations. |
RewriterConfig.NumIterationsType | الحصول على MetaOptimizerIterations () Controls how many times we run the optimizers in meta optimizer (default is once). |
كثافة العمليات | getMetaOptimizerIterationsValue () Controls how many times we run the optimizers in meta optimizer (default is once). |
طويل | getMetaOptimizerTimeoutMs () Maximum number of milliseconds to spend optimizing a single graph before timing out. |
كثافة العمليات | getMinGraphNodes () The minimum number of nodes in a graph to optimizer. |
خيط | الحصول على أوبتيمايزر (فهرس كثافة العمليات) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
com.google.protobuf.ByteString | getOptimizersBytes (فهرس كثافة العمليات) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
كثافة العمليات | الحصول على أوبتيمايزركونت () If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
com.google.protobuf.ProtocolStringList | قائمة الحصول على أوبتيمايزر () If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Toggle | getPinToHostOptimization () Force small ops onto the CPU (default is OFF). |
كثافة العمليات | getPinToHostOptimizationValue () Force small ops onto the CPU (default is OFF). |
تكوين التحقق | getPostOptimizationVerifierConfig () VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
VerifierConfig.Builder | getPostOptimizationVerifierConfigBuilder () VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
VerifierConfigOrBuilder | getPostOptimizationVerifierConfigOrBuilder () VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
RewriterConfig.Toggle | الحصول على إعادة رسم الخرائط () Remapping (default is ON) Remap subgraphs onto more efficient implementations. |
كثافة العمليات | الحصول على قيمة إعادة التعيين () Remapping (default is ON) Remap subgraphs onto more efficient implementations. |
RewriterConfig.Toggle | getScopedAllocatorOptimization () Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default). |
كثافة العمليات | getScopedAllocatorOptimizationValue () Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default). |
خيارات ScopedAllocator | getScopedAllocatorOpts () .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
ScopedAllocatorOptions.Builder | getScopedAllocatorOptsBuilder () .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
ScopedAllocatorOptionsOrBuilder | getScopedAllocatorOptsOrBuilder () .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Toggle | الحصول على الشكل الأمثل () Shape optimizations (default is ON) Simplify computations made on shapes. |
كثافة العمليات | الحصول على قيمة الشكل الأمثل () Shape optimizations (default is ON) Simplify computations made on shapes. |
منطقية | لديهAutoParallel () Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
منطقية | hasInterOptimizerVerifierConfig () VerifierConfig specifying the verifiers to be run after every optimizer. |
منطقية | hasPostOptimizationVerifierConfig () VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
منطقية | hasScopedAllocatorOpts () .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
منطقية نهائية | تمت التهيئة () |
RewriterConfig.Builder | mergeAutoParallel (قيمة AutoParallelOptions ) Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
RewriterConfig.Builder | دمج من (com.google.protobuf.Message أخرى) |
RewriterConfig.Builder | دمج من (com.google.protobuf.CodedInputStream input، com.google.protobuf.ExtensionRegistryLite ExtensionRegistry) |
RewriterConfig.Builder | mergeInterOptimizerVerifierConfig (قيمة VerifierConfig ) VerifierConfig specifying the verifiers to be run after every optimizer. |
RewriterConfig.Builder | mergePostOptimizationVerifierConfig (قيمة VerifierConfig ) VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
RewriterConfig.Builder | mergeScopedAllocatorOpts (قيمة ScopedAllocatorOptions ) .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Builder النهائي | دمجUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields) |
RewriterConfig.Builder | إزالة CustomOptimizers (فهرس كثافة العمليات) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | setArithmeticOptimization (قيمة RewriterConfig.Toggle ) Arithmetic optimizations (default is ON) e.g. |
RewriterConfig.Builder | setArithmeticOptimizationValue (قيمة int) Arithmetic optimizations (default is ON) e.g. |
RewriterConfig.Builder | |
RewriterConfig.Builder | setAutoMixedPrecisionMkl (قيمة RewriterConfig.Toggle ) Optimize data types for MKL (default is OFF). |
RewriterConfig.Builder | setAutoMixedPrecisionMklValue (قيمة int) Optimize data types for MKL (default is OFF). |
RewriterConfig.Builder | setAutoMixedPrecisionValue (قيمة int) Optimize data types for CUDA (default is OFF). |
RewriterConfig.Builder | setAutoParallel ( AutoParallelOptions.Builder builderForValue) Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
RewriterConfig.Builder | setAutoParallel (قيمة AutoParallelOptions ) Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field. |
RewriterConfig.Builder | setCommonSubgraphElivation (قيمة RewriterConfig.Toggle ) Common subgraph elimination (default is ON) e.g. |
RewriterConfig.Builder | setCommonSubgraphEliminatingValue (قيمة int) Common subgraph elimination (default is ON) e.g. |
RewriterConfig.Builder | setConstantFolding (قيمة RewriterConfig.Toggle ) Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants. |
RewriterConfig.Builder | setConstantFoldingValue (قيمة int) Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants. |
RewriterConfig.Builder | setCpuLayoutConversion (قيمة RewriterConfig.CpuLayout ) CPU Conversion settings between NHCW and NCHW. |
RewriterConfig.Builder | setCpuLayoutConversionValue (قيمة int) CPU Conversion settings between NHCW and NCHW. |
RewriterConfig.Builder | setCustomOptimizers (مؤشر int، RewriterConfig.CustomGraphOptimizer.Builder builderForValue) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | setCustomOptimizers (مؤشر int، قيمة RewriterConfig.CustomGraphOptimizer ) list of CustomGraphOptimizers to apply. |
RewriterConfig.Builder | setDebugStripper (قيمة RewriterConfig.Toggle ) Strips debug-related nodes from the graph (off by default). |
RewriterConfig.Builder | setDebugStripperValue (قيمة int) Strips debug-related nodes from the graph (off by default). |
RewriterConfig.Builder | setDependencyOptimization (قيمة RewriterConfig.Toggle ) Control dependency optimizations (default is ON). |
RewriterConfig.Builder | setDependencyOptimizationValue (قيمة int) Control dependency optimizations (default is ON). |
RewriterConfig.Builder | setDisableMetaOptimizer (قيمة منطقية) Disable the entire meta optimizer (off by default). |
RewriterConfig.Builder | setDisableModelPruning (قيمة منطقية) If true, don't remove unnecessary ops from the graph bool disable_model_pruning = 2; |
RewriterConfig.Builder | setExperimentalDisableCompressedTensorOptimization (قيمة منطقية) Disable optimizations that assume compressed tensors. |
RewriterConfig.Builder | setFailOnOptimizerErrors (قيمة منطقية) If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. |
RewriterConfig.Builder | setField (حقل com.google.protobuf.Descriptors.FieldDescriptor، قيمة الكائن) |
RewriterConfig.Builder | |
RewriterConfig.Builder | setFunctionOptimizationValue (قيمة int) Function optimizations (default is ON). |
RewriterConfig.Builder | setImplementationSelector (قيمة RewriterConfig.Toggle ) Enable the swap of kernel implementations based on the device placement (default is ON). |
RewriterConfig.Builder | setImplementationSelectorValue (قيمة int) Enable the swap of kernel implementations based on the device placement (default is ON). |
RewriterConfig.Builder | setInterOptimizerVerifierConfig ( VerifierConfig.Builder builderForValue) VerifierConfig specifying the verifiers to be run after every optimizer. |
RewriterConfig.Builder | setInterOptimizerVerifierConfig (قيمة VerifierConfig ) VerifierConfig specifying the verifiers to be run after every optimizer. |
RewriterConfig.Builder | |
RewriterConfig.Builder | setLayoutOptimizerValue (قيمة int) Optimize tensor layouts (default is ON) e.g. |
RewriterConfig.Builder | |
RewriterConfig.Builder | setLoopOptimizationValue (قيمة int) Loop optimizations (default is ON). |
RewriterConfig.Builder | setMemoryOptimization (قيمة RewriterConfig.MemOptType ) Configures memory optimization passes through the meta-optimizer. |
RewriterConfig.Builder | setMemoryOptimizationValue (قيمة int) Configures memory optimization passes through the meta-optimizer. |
RewriterConfig.Builder | setMemoryOptimizerTargetNodeNameScope (قيمة السلسلة) A node name scope for node names which are valid outputs of recomputations. |
RewriterConfig.Builder | setMemoryOptimizerTargetNodeNameScopeBytes (قيمة com.google.protobuf.ByteString) A node name scope for node names which are valid outputs of recomputations. |
RewriterConfig.Builder | setMetaOptimizerIterations (قيمة RewriterConfig.NumIterationsType ) Controls how many times we run the optimizers in meta optimizer (default is once). |
RewriterConfig.Builder | setMetaOptimizerIterationsValue (قيمة int) Controls how many times we run the optimizers in meta optimizer (default is once). |
RewriterConfig.Builder | setMetaOptimizerTimeoutMs (قيمة طويلة) Maximum number of milliseconds to spend optimizing a single graph before timing out. |
RewriterConfig.Builder | setMinGraphNodes (قيمة int) The minimum number of nodes in a graph to optimizer. |
RewriterConfig.Builder | setOptimizers (مؤشر int، قيمة السلسلة) If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). |
RewriterConfig.Builder | setPinToHostOptimization (قيمة RewriterConfig.Toggle ) Force small ops onto the CPU (default is OFF). |
RewriterConfig.Builder | setPinToHostOptimizationValue (قيمة int) Force small ops onto the CPU (default is OFF). |
RewriterConfig.Builder | setPostOptimizationVerifierConfig (قيمة VerifierConfig ) VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
RewriterConfig.Builder | setPostOptimizationVerifierConfig ( VerifierConfig.Builder builderForValue) VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run. |
RewriterConfig.Builder | setRemapping (قيمة RewriterConfig.Toggle ) Remapping (default is ON) Remap subgraphs onto more efficient implementations. |
RewriterConfig.Builder | setRemappingValue (قيمة int) Remapping (default is ON) Remap subgraphs onto more efficient implementations. |
RewriterConfig.Builder | setRepeatedField (حقل com.google.protobuf.Descriptors.FieldDescriptor، مؤشر int، قيمة الكائن) |
RewriterConfig.Builder | setScopedAllocatorOptimization (قيمة RewriterConfig.Toggle ) Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default). |
RewriterConfig.Builder | setScopedAllocatorOptimizationValue (قيمة int) Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default). |
RewriterConfig.Builder | setScopedAllocatorOpts (قيمة ScopedAllocatorOptions ) .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Builder | setScopedAllocatorOpts ( ScopedAllocatorOptions.Builder builderForValue) .tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16; |
RewriterConfig.Builder | setShapeOptimization (قيمة RewriterConfig.Toggle ) Shape optimizations (default is ON) Simplify computations made on shapes. |
RewriterConfig.Builder | setShapeOptimizationValue (قيمة int) Shape optimizations (default is ON) Simplify computations made on shapes. |
RewriterConfig.Builder النهائي | setUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields) |
الطرق الموروثة
الأساليب العامة
RewriterConfig.Builder public addAllCustomOptimizers (Iterable<? يمتد RewriterConfig.CustomGraphOptimizer > القيم)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder العامة addAllOptimizers (قيم Iterable<String>)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Builder العامة addCustomOptimizers ( RewriterConfig.CustomGraphOptimizer.Builder builderForValue)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder العامة addCustomOptimizers (مؤشر int، RewriterConfig.CustomGraphOptimizer.Builder builderForValue)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder العامة addCustomOptimizers (قيمة RewriterConfig.CustomGraphOptimizer )
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder public addCustomOptimizers (مؤشر int، قيمة RewriterConfig.CustomGraphOptimizer )
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizer.Builder العامة addCustomOptimizersBuilder (مؤشر int)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizer.Builder العامة addCustomOptimizersBuilder ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
public RewriterConfig.Builder addOptimizers (قيمة السلسلة)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Builder العامة addOptimizersBytes (قيمة com.google.protobuf.ByteString)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Builder public addRepeatedField (حقل com.google.protobuf.Descriptors.FieldDescriptor، قيمة الكائن)
RewriterConfig.Builder العامة ClearArithmeticOptimization ()
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
RewriterConfig.Builder العامة ClearAutoMixedPrecision ()
Optimize data types for CUDA (default is OFF). This will try to use float16 on GPU which is faster. Note that this can change the numerical stability of the graph and may require the use of loss scaling to maintain model convergence.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23;
RewriterConfig.Builder العامة ClearAutoMixedPrecisionMkl ()
Optimize data types for MKL (default is OFF). This will try to use bfloat16 on CPUs, which is faster. Note that this can change the numerical stability of the graph.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25;
RewriterConfig.Builder العامة ClearAutoParallel ()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
RewriterConfig.Builder العامة ClearCommonSubgraphElivation ()
Common subgraph elimination (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24;
RewriterConfig.Builder العامة ClearConstantFolding ()
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.Builder العامة ClearCpuLayoutConversion ()
CPU Conversion settings between NHCW and NCHW.
.tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50;
RewriterConfig.Builder العامة ClearCustomOptimizers ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder العامة ClearDebugStripper ()
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
RewriterConfig.Builder العامة ClearDependencyOptimization ()
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
RewriterConfig.Builder العامة ClearDisableMetaOptimizer ()
Disable the entire meta optimizer (off by default).
bool disable_meta_optimizer = 19;
RewriterConfig.Builder العامة ClearDisableModelPruning ()
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
RewriterConfig.Builder العامة ClearExperimentalDisableCompressedTensorOptimization ()
Disable optimizations that assume compressed tensors. Note that this flag is experimental and may be removed in the future.
bool experimental_disable_compressed_tensor_optimization = 26;
RewriterConfig.Builder العامة ClearFailOnOptimizerErrors ()
If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. By default - or when set to false, failing passes are skipped silently.
bool fail_on_optimizer_errors = 21;
RewriterConfig.Builder العامة ClearFunctionOptimization ()
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
RewriterConfig.Builder العامة ClearImplementationSelector ()
Enable the swap of kernel implementations based on the device placement (default is ON).
.tensorflow.RewriterConfig.Toggle implementation_selector = 22;
RewriterConfig.Builder العامة ClearInterOptimizerVerifierConfig ()
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
RewriterConfig.Builder العامة ClearLayoutOptimizer ()
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
RewriterConfig.Builder العامة ClearLoopOptimization ()
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
RewriterConfig.Builder العامة ClearMemoryOptimization ()
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
RewriterConfig.Builder العامة ClearMemoryOptimizerTargetNodeNameScope ()
A node name scope for node names which are valid outputs of recomputations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
RewriterConfig.Builder العامة ClearMetaOptimizerIterations ()
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
RewriterConfig.Builder العامة ClearMetaOptimizerTimeoutMs ()
Maximum number of milliseconds to spend optimizing a single graph before timing out. If equal to 0 the system picks a default (currently 5 minutes). If less than 0 the optimizer will never time out.
int64 meta_optimizer_timeout_ms = 20;
RewriterConfig.Builder العامة ClearMinGraphNodes ()
The minimum number of nodes in a graph to optimizer. For smaller graphs, optimization is skipped. 0 means the system picks an appropriate number. < 0 means do not skip optimization.
int32 min_graph_nodes = 17;
RewriterConfig.Builder العامة ClearOptimizers ()
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Builder العامة ClearPinToHostOptimization ()
Force small ops onto the CPU (default is OFF).
.tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
RewriterConfig.Builder العامة ClearPostOptimizationVerifierConfig ()
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
RewriterConfig.Builder العامة ClearRemapping ()
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
RewriterConfig.Builder العامة ClearScopedAllocatorOptimization ()
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
RewriterConfig.Builder العامة ClearScopedAllocatorOpts ()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
RewriterConfig.Builder العامة ClearShapeOptimization ()
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
RewriterConfig.Toggle getArithmeticOptimization ()
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
int public getArithmeticOptimizationValue ()
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
RewriterConfig.Toggle getAutoMixedPrecision ()
Optimize data types for CUDA (default is OFF). This will try to use float16 on GPU which is faster. Note that this can change the numerical stability of the graph and may require the use of loss scaling to maintain model convergence.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23;
RewriterConfig.Toggle public getAutoMixedPrecisionMkl ()
Optimize data types for MKL (default is OFF). This will try to use bfloat16 on CPUs, which is faster. Note that this can change the numerical stability of the graph.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25;
int العام getAutoMixedPrecisionMklValue ()
Optimize data types for MKL (default is OFF). This will try to use bfloat16 on CPUs, which is faster. Note that this can change the numerical stability of the graph.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25;
int العام getAutoMixedPrecisionValue ()
Optimize data types for CUDA (default is OFF). This will try to use float16 on GPU which is faster. Note that this can change the numerical stability of the graph and may require the use of loss scaling to maintain model convergence.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23;
خيارات AutoParallel العامة getAutoParallel ()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
AutoParallelOptions.Builder العامة getAutoParallelBuilder ()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
AutoParallelOptionsOrBuilder العامة getAutoParallelOrBuilder ()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
RewriterConfig.Toggle public getCommonSubgraphElivation ()
Common subgraph elimination (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24;
int العام getCommonSubgraphElivationValue ()
Common subgraph elimination (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24;
RewriterConfig.Toggle getConstantFolding ()
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
int العام getConstantFoldingValue ()
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.CpuLayout العامة getCpuLayoutConversion ()
CPU Conversion settings between NHCW and NCHW.
.tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50;
int public getCpuLayoutConversionValue ()
CPU Conversion settings between NHCW and NCHW.
.tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50;
RewriterConfig.CustomGraphOptimizer العامة getCustomOptimizers (مؤشر int)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizer.Builder العامة getCustomOptimizersBuilder (فهرس كثافة العمليات)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
القائمة العامة< RewriterConfig.CustomGraphOptimizer.Builder > getCustomOptimizersBuilderList ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
int العام getCustomOptimizersCount ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
القائمة العامة< RewriterConfig.CustomGraphOptimizer > getCustomOptimizersList ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.CustomGraphOptimizerOrBuilder العامة getCustomOptimizersOrBuilder (فهرس كثافة العمليات)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
القائمة العامة <؟ يمتد RewriterConfig.CustomGraphOptimizerOrBuilder > getCustomOptimizersOrBuilderList ()
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Toggle getDebugStripper ()
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
int public getDebugStripperValue ()
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
RewriterConfig.Toggle getDependencyOptimization ()
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
int public getDependencyOptimizationValue ()
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
النهائي العام الثابت com.google.protobuf.Descriptors.Descriptor getDescriptor ()
com.google.protobuf.Descriptors.Descriptor getDescriptorForType () العام
getDisableMetaOptimizer () المنطقي العام
Disable the entire meta optimizer (off by default).
bool disable_meta_optimizer = 19;
getDisableModelPruning () المنطقية العامة
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
الحصول على القيمة المنطقية العامة ExperimentalDisableCompressedTensorOptimization ()
Disable optimizations that assume compressed tensors. Note that this flag is experimental and may be removed in the future.
bool experimental_disable_compressed_tensor_optimization = 26;
getFailOnOptimizerErrors () المنطقية العامة
If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. By default - or when set to false, failing passes are skipped silently.
bool fail_on_optimizer_errors = 21;
RewriterConfig.Toggle getFunctionOptimization ()
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
int public getFunctionOptimizationValue ()
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
RewriterConfig.Toggle getImplementationSelector ()
Enable the swap of kernel implementations based on the device placement (default is ON).
.tensorflow.RewriterConfig.Toggle implementation_selector = 22;
int public getImplementationSelectorValue ()
Enable the swap of kernel implementations based on the device placement (default is ON).
.tensorflow.RewriterConfig.Toggle implementation_selector = 22;
تكوين التحقق العام getInterOptimizerVerifierConfig ()
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
VerifierConfig.Builder العامة getInterOptimizerVerifierConfigBuilder ()
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
التحقق العام ConfigOrBuilder getInterOptimizerVerifierConfigOrBuilder ()
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
RewriterConfig.Toggle getLayoutOptimizer ()
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
int public getLayoutOptimizerValue ()
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
RewriterConfig.Toggle getLoopOptimization ()
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
int public getLoopOptimizationValue ()
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
RewriterConfig.MemOptType العامة getMemoryOptimization ()
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
int public getMemoryOptimizationValue ()
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
سلسلة عامة getMemoryOptimizerTargetNodeNameScope ()
A node name scope for node names which are valid outputs of recomputations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
com.google.protobuf.ByteString العامة getMemoryOptimizerTargetNodeNameScopeBytes ()
A node name scope for node names which are valid outputs of recomputations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
RewriterConfig.NumIterationsType العامة getMetaOptimizerIterations ()
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
int public getMetaOptimizerIterationsValue ()
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
getMetaOptimizerTimeoutMs () العامة الطويلة
Maximum number of milliseconds to spend optimizing a single graph before timing out. If equal to 0 the system picks a default (currently 5 minutes). If less than 0 the optimizer will never time out.
int64 meta_optimizer_timeout_ms = 20;
int public getMinGraphNodes ()
The minimum number of nodes in a graph to optimizer. For smaller graphs, optimization is skipped. 0 means the system picks an appropriate number. < 0 means do not skip optimization.
int32 min_graph_nodes = 17;
سلسلة getOptimizers العامة (مؤشر int)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
com.google.protobuf.ByteString getOptimizersBytes العام (مؤشر int)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
int public getOptimizersCount ()
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
com.google.protobuf.ProtocolStringList العامة getOptimizersList ()
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Toggle public getPinToHostOptimization ()
Force small ops onto the CPU (default is OFF).
.tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
int public getPinToHostOptimizationValue ()
Force small ops onto the CPU (default is OFF).
.tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
تكوين التحقق العام getPostOptimizationVerifierConfig ()
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
VerifierConfig.Builder العام getPostOptimizationVerifierConfigBuilder ()
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
التحقق العام ConfigOrBuilder getPostOptimizationVerifierConfigOrBuilder ()
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
RewriterConfig.Toggle getRemapping ()
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
int public getRemappingValue ()
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
RewriterConfig.Toggle public getScopedAllocatorOptimization ()
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
int public getScopedAllocatorOptimizationValue ()
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
خيارات ScopedAllocator العامة getScopedAllocatorOpts ()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
ScopedAllocatorOptions.Builder العامة getScopedAllocatorOptsBuilder ()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
public ScopedAllocatorOptionsOrBuilder getScopedAllocatorOptsOrBuilder ()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
RewriterConfig.Toggle getShapeOptimization ()
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
int public getShapeOptimizationValue ()
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
المنطق المنطقي العام hasAutoParallel ()
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
المنطق المنطقي العام hasInterOptimizerVerifierConfig ()
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
المنطق المنطقي العام hasPostOptimizationVerifierConfig ()
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
المنطق المنطقي العام hasScopedAllocatorOpts ()
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
تمت تهيئة القيمة المنطقية النهائية العامة ()
RewriterConfig.Builder العامة mergeAutoParallel (قيمة AutoParallelOptions )
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
RewriterConfig.Builder العام mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
رميات
IOEException |
---|
RewriterConfig.Builder العامة، mergeInterOptimizerVerifierConfig (قيمة VerifierConfig )
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
RewriterConfig.Builder العامة، mergePostOptimizationVerifierConfig (قيمة VerifierConfig )
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
RewriterConfig.Builder العامة mergeScopedAllocatorOpts (قيمة ScopedAllocatorOptions )
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
RewriterConfig.Builder النهائي العام mergeUnknownFields (com.google.protobuf.UnknownFieldSet UnknownFields)
RewriterConfig.Builder العامة إزالةCustomOptimizers (مؤشر كثافة العمليات)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
مجموعة RewriterConfig.Builder العامة ArithmeticOptimization (قيمة RewriterConfig.Toggle )
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
مجموعة RewriterConfig.Builder العامة ArithmeticOptimizationValue (قيمة int)
Arithmetic optimizations (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle arithmetic_optimization = 7;
مجموعة RewriterConfig.Builder العامة AutoMixedPrecision (قيمة RewriterConfig.Toggle )
Optimize data types for CUDA (default is OFF). This will try to use float16 on GPU which is faster. Note that this can change the numerical stability of the graph and may require the use of loss scaling to maintain model convergence.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23;
مجموعة RewriterConfig.Builder العامة AutoMixedPrecisionMkl (قيمة RewriterConfig.Toggle )
Optimize data types for MKL (default is OFF). This will try to use bfloat16 on CPUs, which is faster. Note that this can change the numerical stability of the graph.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25;
مجموعة RewriterConfig.Builder العامة AutoMixedPrecisionMklValue (قيمة int)
Optimize data types for MKL (default is OFF). This will try to use bfloat16 on CPUs, which is faster. Note that this can change the numerical stability of the graph.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision_mkl = 25;
مجموعة RewriterConfig.Builder العامة AutoMixedPrecisionValue (قيمة int)
Optimize data types for CUDA (default is OFF). This will try to use float16 on GPU which is faster. Note that this can change the numerical stability of the graph and may require the use of loss scaling to maintain model convergence.
.tensorflow.RewriterConfig.Toggle auto_mixed_precision = 23;
مجموعة RewriterConfig.Builder العامة AutoParallel ( AutoParallelOptions.Builder builderForValue)
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
مجموعة RewriterConfig.Builder العامة AutoParallel (قيمة AutoParallelOptions )
Configures AutoParallel optimization passes either through the meta-optimizer or when manually specified through the optimizers field.
.tensorflow.AutoParallelOptions auto_parallel = 5;
مجموعة RewriterConfig.Builder العامة CommonSubgraphElivation (قيمة RewriterConfig.Toggle )
Common subgraph elimination (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24;
مجموعة RewriterConfig.Builder العامة CommonSubgraphElivationValue (قيمة int)
Common subgraph elimination (default is ON) e.g. Simplify arithmetic ops; merge ops with same value (like constants).
.tensorflow.RewriterConfig.Toggle common_subgraph_elimination = 24;
مجموعة RewriterConfig.Builder العامة ConstantFolding (قيمة RewriterConfig.Toggle )
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.Builder العامة setConstantFoldingValue (قيمة int)
Fold constants (default is ON) Statically infer the value of tensors when possible, and materialize the result using constants.
.tensorflow.RewriterConfig.Toggle constant_folding = 3;
RewriterConfig.Builder العامة setCpuLayoutConversion (قيمة RewriterConfig.CpuLayout )
CPU Conversion settings between NHCW and NCHW.
.tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50;
مجموعة RewriterConfig.Builder العامة CpuLayoutConversionValue (قيمة int)
CPU Conversion settings between NHCW and NCHW.
.tensorflow.RewriterConfig.CpuLayout cpu_layout_conversion = 50;
مجموعة RewriterConfig.Builder العامة CustomOptimizers (مؤشر int، RewriterConfig.CustomGraphOptimizer.Builder builderForValue)
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
مجموعة RewriterConfig.Builder العامة CustomOptimizers (مؤشر int، قيمة RewriterConfig.CustomGraphOptimizer )
list of CustomGraphOptimizers to apply.
repeated .tensorflow.RewriterConfig.CustomGraphOptimizer custom_optimizers = 200;
RewriterConfig.Builder العامة setDebugStripper (قيمة RewriterConfig.Toggle )
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
RewriterConfig.Builder العامة setDebugStripperValue (قيمة int)
Strips debug-related nodes from the graph (off by default).
.tensorflow.RewriterConfig.Toggle debug_stripper = 11;
مجموعة RewriterConfig.Builder العامة DependencyOptimization (قيمة RewriterConfig.Toggle )
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
RewriterConfig.Builder العامة setDependencyOptimizationValue (قيمة int)
Control dependency optimizations (default is ON). Remove redundant control dependencies, which may enable other optimization.
.tensorflow.RewriterConfig.Toggle dependency_optimization = 8;
مجموعة RewriterConfig.Builder العامة DisableMetaOptimizer (قيمة منطقية)
Disable the entire meta optimizer (off by default).
bool disable_meta_optimizer = 19;
مجموعة RewriterConfig.Builder العامة DisableModelPruning (قيمة منطقية)
If true, don't remove unnecessary ops from the graph
bool disable_model_pruning = 2;
مجموعة RewriterConfig.Builder العامة ExperimentalDisableCompressedTensorOptimization (قيمة منطقية)
Disable optimizations that assume compressed tensors. Note that this flag is experimental and may be removed in the future.
bool experimental_disable_compressed_tensor_optimization = 26;
RewriterConfig.Builder العامة setFailOnOptimizerErrors (قيمة منطقية)
If true, any optimization pass failing will cause the MetaOptimizer to stop with an error. By default - or when set to false, failing passes are skipped silently.
bool fail_on_optimizer_errors = 21;
RewriterConfig.Builder public setField (حقل com.google.protobuf.Descriptors.FieldDescriptor، قيمة الكائن)
مجموعة RewriterConfig.Builder العامة FunctionOptimization (قيمة RewriterConfig.Toggle )
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
RewriterConfig.Builder العامة setFunctionOptimizationValue (قيمة int)
Function optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle function_optimization = 10;
مجموعة RewriterConfig.Builder العامة ImplementationSelector (قيمة RewriterConfig.Toggle )
Enable the swap of kernel implementations based on the device placement (default is ON).
.tensorflow.RewriterConfig.Toggle implementation_selector = 22;
مجموعة RewriterConfig.Builder العامة ImplementationSelectorValue (قيمة int)
Enable the swap of kernel implementations based on the device placement (default is ON).
.tensorflow.RewriterConfig.Toggle implementation_selector = 22;
RewriterConfig.Builder العامة setInterOptimizerVerifierConfig ( VerifierConfig.Builder builderForValue)
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
RewriterConfig.Builder العامة setInterOptimizerVerifierConfig (قيمة VerifierConfig )
VerifierConfig specifying the verifiers to be run after every optimizer.
.tensorflow.VerifierConfig inter_optimizer_verifier_config = 300;
RewriterConfig.Builder العامة setLayoutOptimizer (قيمة RewriterConfig.Toggle )
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
مجموعة RewriterConfig.Builder العامة LayoutOptimizerValue (قيمة int)
Optimize tensor layouts (default is ON) e.g. This will try to use NCHW layout on GPU which is faster.
.tensorflow.RewriterConfig.Toggle layout_optimizer = 1;
RewriterConfig.Builder العامة setLoopOptimization (قيمة RewriterConfig.Toggle )
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
RewriterConfig.Builder العامة setLoopOptimizationValue (قيمة int)
Loop optimizations (default is ON).
.tensorflow.RewriterConfig.Toggle loop_optimization = 9;
RewriterConfig.Builder العامة setMemoryOptimization (قيمة RewriterConfig.MemOptType )
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
RewriterConfig.Builder العامة setMemoryOptimizationValue (قيمة int)
Configures memory optimization passes through the meta-optimizer. Has no effect on manually requested memory optimization passes in the optimizers field.
.tensorflow.RewriterConfig.MemOptType memory_optimization = 4;
RewriterConfig.Builder العامة setMemoryOptimizerTargetNodeNameScope (قيمة السلسلة)
A node name scope for node names which are valid outputs of recomputations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
RewriterConfig.Builder العامة setMemoryOptimizerTargetNodeNameScopeBytes (قيمة com.google.protobuf.ByteString)
A node name scope for node names which are valid outputs of recomputations. Inputs to nodes that match this scope may be recomputed (subject either to manual annotation of those input nodes or to manual annotation and heuristics depending on memory_optimization), but the nodes themselves will not be recomputed. This matches any sub-scopes as well, meaning the scope can appear not just as a top-level scope. For example, if the value is "gradients/", the default, it will match node name "gradients/foo", "foo/gradients/bar", but not "foo_gradients/"
string memory_optimizer_target_node_name_scope = 6;
مجموعة RewriterConfig.Builder العامة MetaOptimizerIterations (قيمة RewriterConfig.NumIterationsType )
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
مجموعة RewriterConfig.Builder العامة MetaOptimizerIterationsValue (قيمة int)
Controls how many times we run the optimizers in meta optimizer (default is once).
.tensorflow.RewriterConfig.NumIterationsType meta_optimizer_iterations = 12;
RewriterConfig.Builder العامة setMetaOptimizerTimeoutMs (قيمة طويلة)
Maximum number of milliseconds to spend optimizing a single graph before timing out. If equal to 0 the system picks a default (currently 5 minutes). If less than 0 the optimizer will never time out.
int64 meta_optimizer_timeout_ms = 20;
مجموعة RewriterConfig.Builder العامة MinGraphNodes (قيمة int)
The minimum number of nodes in a graph to optimizer. For smaller graphs, optimization is skipped. 0 means the system picks an appropriate number. < 0 means do not skip optimization.
int32 min_graph_nodes = 17;
مجموعة RewriterConfig.Builder العامة (مؤشر int، قيمة السلسلة)
If non-empty, will use this as an alternative way to specify a list of optimizations to turn on and the order of the optimizations (replacing the meta-optimizer). Of the RewriterConfig options, only the AutoParallel configuration options (the auto_parallel field) apply to manually requested optimization passes ("autoparallel"). Memory optimization passes ("memory") invoked here are not configurable (in contrast to memory optimization passes through the meta-optimizer) and act only on manual op annotations. Custom optimizers (see custom_optimizers) that are not part of this schedule will be run after - in the order that they were specified.
repeated string optimizers = 100;
RewriterConfig.Builder العامة setPinToHostOptimization (قيمة RewriterConfig.Toggle )
Force small ops onto the CPU (default is OFF).
.tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
RewriterConfig.Builder العامة setPinToHostOptimizationValue (قيمة int)
Force small ops onto the CPU (default is OFF).
.tensorflow.RewriterConfig.Toggle pin_to_host_optimization = 18;
RewriterConfig.Builder العامة setPostOptimizationVerifierConfig (قيمة VerifierConfig )
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
مجموعة RewriterConfig.Builder العامة PostOptimizationVerifierConfig ( VerifierConfig.Builder builderForValue)
VerifierConfig specifying the verifiers to be run at the end, after all optimizers have run.
.tensorflow.VerifierConfig post_optimization_verifier_config = 301;
مجموعة RewriterConfig.Builder العامة (قيمة RewriterConfig.Toggle )
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
مجموعة RewriterConfig.Builder العامة RemappingValue (قيمة int)
Remapping (default is ON) Remap subgraphs onto more efficient implementations.
.tensorflow.RewriterConfig.Toggle remapping = 14;
RewriterConfig.Builder العام setRepeatedField (حقل com.google.protobuf.Descriptors.FieldDescriptor، مؤشر int، قيمة الكائن)
RewriterConfig.Builder العامة setScopedAllocatorOptimization (قيمة RewriterConfig.Toggle )
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
RewriterConfig.Builder العامة setScopedAllocatorOptimizationValue (قيمة int)
Try to allocate some independent Op outputs contiguously in order to merge or eliminate downstream Ops (off by default).
.tensorflow.RewriterConfig.Toggle scoped_allocator_optimization = 15;
RewriterConfig.Builder العامة setScopedAllocatorOpts (قيمة ScopedAllocatorOptions )
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
مجموعة RewriterConfig.Builder العامة ScopedAllocatorOpts ( ScopedAllocatorOptions.Builder builderForValue)
.tensorflow.ScopedAllocatorOptions scoped_allocator_opts = 16;
RewriterConfig.Builder العامة setShapeOptimization (قيمة RewriterConfig.Toggle )
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;
مجموعة RewriterConfig.Builder العامة ShapeOptimizationValue (قيمة int)
Shape optimizations (default is ON) Simplify computations made on shapes.
.tensorflow.RewriterConfig.Toggle shape_optimization = 13;