mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
**Without this change**, when using `--use_xnnpack`, either: 1. `--use_xnnpack=true`: the **default resolver** (that automatically applies an XNNPack delegate) is used and an XNNPack delegate that follows the options that are given on the command line is explicitly applied. 2. `--use_xnnpack=false`: the **resolver without the default XNNPack delegate** is used and no delegate is explicitly applied, i.e. no delegate is applied. 3. No `--use_xnnpack` is specified: the **default resolver** (that automatically applies an XNNPack delegate) is used. Case 1 has issues because the custom and default delegates are applied and these may interfere during the initialization. - Depending on the XNNPack options some operations may be delegated or not. - This leads to one or the other delegate to take the ops. - This makes the benchmarking of initialization completely wrong since two delegates are applied. - This messes up with the XNNPack weight cache since it can never be enabled for the default delegate. To solve this, the new behaviour is: 1. `--use_xnnpack=true`: the **resolver without the default XNNPack delegate** is used **and** an XNNPack delegate that follows the options that are given on the command line is explicitly applied. 2. `--use_xnnpack=false`: the **resolver without the default XNNPack delegate** is used and no delegate is explicitly applied, i.e. no delegate is applied. 3. No `--use_xnnpack` is specified: the **default resolver** (that automatically applies an XNNPack delegate) is used. Cases 2 and 3 are not affected by this change. PiperOrigin-RevId: 825018995 |
||
|---|---|---|
| .. | ||
| c | ||
| cc | ||
| compiler | ||
| core | ||
| distribute/experimental/rpc | ||
| docs_src | ||
| dtensor | ||
| examples | ||
| go | ||
| java | ||
| js | ||
| lite | ||
| python | ||
| security | ||
| tools | ||
| __init__.py | ||
| .clang-format | ||
| api_template_v1.__init__.py | ||
| api_template.__init__.py | ||
| BUILD | ||
| build_cleaner_spec.textproto | ||
| compat_template_v1.__init__.py | ||
| compat_template.__init__.py | ||
| opensource_only.files | ||
| py.default.bzl | ||
| pytype.default.bzl | ||
| strict.default.bzl | ||
| tensorflow.bzl | ||
| tensorflow.default.bzl | ||
| tf_exported_symbols.lds | ||
| tf_framework_version_script.lds | ||
| tf_private_symbols.lds | ||
| tf_version_script.lds | ||
| tf_version.bzl | ||
| tf_version.default.bzl | ||
| virtual_root_template_v1.__init__.py | ||
| virtual_root_template_v2.__init__.py | ||
| workspace1.bzl | ||
| workspace2.bzl | ||
| workspace3.bzl | ||
| workspace0.bzl | ||