basedpyright 1.36.2 → 1.37.0-961d59bacff1958014fe4e9ed2ef3116fe2266e2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +6 -6
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_compression.pyi +13 -2
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +49 -16
- package/dist/typeshed-fallback/stdlib/_winapi.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/_zstd.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/argparse.pyi +39 -10
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +27 -8
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +5 -2
- package/dist/typeshed-fallback/stdlib/asyncio/trsock.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/builtins.pyi +54 -31
- package/dist/typeshed-fallback/stdlib/calendar.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/compression/_common/_streams.pyi +13 -2
- package/dist/typeshed-fallback/stdlib/compression/zstd/__init__.pyi +7 -2
- package/dist/typeshed-fallback/stdlib/compression/zstd/_zstdfile.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/enum.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/heapq.pyi +5 -0
- package/dist/typeshed-fallback/stdlib/html/parser.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/http/client.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/imaplib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/importlib/resources/abc.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/importlib/util.pyi +15 -1
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/locale.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/mimetypes.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/mmap.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +20 -8
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/optparse.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +217 -127
- package/dist/typeshed-fallback/stdlib/parser.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/pathlib/__init__.pyi +11 -0
- package/dist/typeshed-fallback/stdlib/pdb.pyi +14 -4
- package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/select.pyi +8 -4
- package/dist/typeshed-fallback/stdlib/socket.pyi +15 -0
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/ssl.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/stat.pyi +108 -1
- package/dist/typeshed-fallback/stdlib/subprocess.pyi +60 -61
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +41 -4
- package/dist/typeshed-fallback/stdlib/sys/_monitoring.pyi +8 -4
- package/dist/typeshed-fallback/stdlib/sysconfig.pyi +13 -4
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/threading.pyi +9 -4
- package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +14 -6
- package/dist/typeshed-fallback/stdlib/types.pyi +8 -11
- package/dist/typeshed-fallback/stdlib/typing.pyi +18 -12
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/unittest/util.pyi +19 -2
- package/dist/typeshed-fallback/stdlib/urllib/request.pyi +7 -0
- package/dist/typeshed-fallback/stdlib/uuid.pyi +6 -5
- package/dist/typeshed-fallback/stdlib/winreg.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/zlib.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +1 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +4 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +4 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +4 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/apps.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/integration.pyi +11 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/authorization_server.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/nonce.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/resource_protector.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/__init__.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/authorization_server.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/endpoints.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/requests.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/resource_protector.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/signals.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/apps.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/integration.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/authorization_server.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/cache.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/resource_protector.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/authorization_server.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/errors.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/requests.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/resource_protector.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/signals.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/__init__.pyi +37 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/assertion_client.pyi +50 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/oauth1_client.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/oauth2_client.pyi +72 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/utils.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/__init__.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/assertion_session.pyi +31 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/oauth1_session.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/oauth2_session.pyi +43 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/utils.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/client_mixin.pyi +55 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/functions.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/tokens_mixins.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/__init__.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/apps.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/integration.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +12 -10
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +6 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +6 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +3 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +9 -8
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +12 -11
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +35 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +6 -5
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +8 -8
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +3 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +28 -23
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +6 -5
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +5 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +2 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +4 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +4 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +7 -7
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +6 -6
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +8 -8
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +4 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +20 -18
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +5 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +5 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +6 -5
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +4 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +8 -8
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +4 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +3 -2
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +6 -8
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +2 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +4 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +6 -4
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/userinfo.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +7 -1
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +1 -3
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Deprecated/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/__init__.pyi +7 -2
- package/dist/typeshed-fallback/stubs/Deprecated/deprecated/params.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Markdown/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Markdown/markdown/htmlparser.pyi +2 -0
- package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/cursors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Pygments/pygments/console.pyi +4 -4
- package/dist/typeshed-fallback/stubs/Pygments/pygments/filter.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Pygments/pygments/filters/__init__.pyi +14 -14
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatter.pyi +10 -9
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/_mapping.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/bbcode.pyi +5 -4
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/html.pyi +27 -26
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/img.pyi +33 -32
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/irc.pyi +7 -6
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/latex.pyi +21 -20
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/other.pyi +9 -8
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/pangomarkup.pyi +5 -4
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/rtf.pyi +6 -5
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/svg.pyi +15 -14
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/terminal.pyi +7 -6
- package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/terminal256.pyi +18 -17
- package/dist/typeshed-fallback/stubs/Pygments/pygments/lexers/__init__.pyi +6 -7
- package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +5 -5
- package/dist/typeshed-fallback/stubs/Pygments/pygments/regexopt.pyi +3 -3
- package/dist/typeshed-fallback/stubs/Pygments/pygments/scanner.pyi +6 -6
- package/dist/typeshed-fallback/stubs/Pygments/pygments/unistring.pyi +2 -2
- package/dist/typeshed-fallback/stubs/Pygments/pygments/util.pyi +5 -5
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/BufferedTokenStream.pyi +14 -15
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/CommonTokenFactory.pyi +15 -7
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/CommonTokenStream.pyi +1 -3
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/FileStream.pyi +2 -4
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/InputStream.pyi +13 -11
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Lexer.pyi +43 -29
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Parser.pyi +47 -34
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/ParserInterpreter.pyi +13 -13
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi +30 -23
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Recognizer.pyi +26 -17
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/RuleContext.pyi +22 -20
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Token.pyi +26 -25
- package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/tree/Tree.pyi +30 -26
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/assertpy.pyi +13 -10
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/base.pyi +4 -5
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/collection.pyi +12 -4
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/contains.pyi +10 -8
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/dict.pyi +8 -6
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/dynamic.pyi +1 -1
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +4 -2
- package/dist/typeshed-fallback/stubs/assertpy/assertpy/file.pyi +2 -3
- package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/function_hooks.pyi +14 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/import_hook.pyi +36 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/instrument_bytecode.pyi +7 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/utils.pyi +18 -0
- package/dist/typeshed-fallback/stubs/atheris/atheris/version_dependent.pyi +27 -0
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi +15 -5
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi +28 -9
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/context.pyi +7 -7
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/daemon_config.pyi +9 -7
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/emitters/udp_emitter.pyi +2 -2
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi +8 -12
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi +1 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi +1 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/http.pyi +9 -9
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/segment.pyi +1 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi +3 -2
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/throwable.pyi +11 -3
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/patcher.pyi +3 -2
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi +3 -3
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ecs_plugin.pyi +2 -2
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/elasticbeanstalk_plugin.pyi +3 -3
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/recorder.pyi +19 -15
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/rule_cache.pyi +1 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi +3 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi +23 -13
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/target_poller.pyi +5 -1
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/psycopg/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/psycopg/patch.pyi +1 -0
- package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/bleach/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/bleach/bleach/html5lib_shim.pyi +1 -1
- package/dist/typeshed-fallback/stubs/bleach/bleach/linkifier.pyi +1 -1
- package/dist/typeshed-fallback/stubs/bleach/bleach/sanitizer.pyi +2 -2
- package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/address.pyi +8 -4
- package/dist/typeshed-fallback/stubs/braintree/braintree/address_gateway.pyi +3 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/client_token.pyi +5 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/client_token_gateway.pyi +5 -3
- package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +11 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method.pyi +30 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_gateway.pyi +30 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription.pyi +10 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_details.pyi +5 -1
- package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_gateway.pyi +12 -5
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction.pyi +6 -2
- package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_gateway.pyi +5 -2
- package/dist/typeshed-fallback/stubs/colorful/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/ansi.pyi +14 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/colors.pyi +6 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/core.pyi +102 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/styles.pyi +4 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/terminal.pyi +16 -0
- package/dist/typeshed-fallback/stubs/colorful/colorful/utils.pyi +2 -0
- package/dist/typeshed-fallback/stubs/decorator/decorator.pyi +2 -2
- package/dist/typeshed-fallback/stubs/django-filter/django_filters/filterset.pyi +3 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +6 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +12 -4
- package/dist/typeshed-fallback/stubs/docker/docker/api/exec_api.pyi +123 -7
- package/dist/typeshed-fallback/stubs/docker/docker/client.pyi +12 -8
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +27 -17
- package/dist/typeshed-fallback/stubs/docker/docker/models/images.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docker/docker/models/resource.pyi +5 -5
- package/dist/typeshed-fallback/stubs/docutils/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/body.pyi +10 -0
- package/dist/typeshed-fallback/stubs/et_xmlfile/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/incremental_tree.pyi +170 -0
- package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/xmlfile.pyi +37 -0
- package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-bugbear/bugbear.pyi +37 -65
- package/dist/typeshed-fallback/stubs/flake8-builtins/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-simplify/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/constants.pyi +6 -3
- package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/utils.pyi +0 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +145 -81
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/text_region.pyi +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/array.pyi +7 -14
- package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gevent/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/gevent/gevent/events.pyi +1 -12
- package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/watcher.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gevent/gevent/os.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gevent/gevent/signal.pyi +2 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_cache.pyi +9 -10
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_datastore_query.pyi +1 -2
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_eventloop.pyi +11 -10
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/blobstore.pyi +6 -6
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/context.pyi +21 -21
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/exceptions.pyi +2 -2
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi +13 -14
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/key.pyi +2 -3
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/metadata.pyi +1 -2
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/polymodel.pyi +2 -2
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/query.pyi +26 -27
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/stats.pyi +37 -37
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/tasklets.pyi +7 -7
- package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/utils.pyi +4 -4
- package/dist/typeshed-fallback/stubs/greenlet/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/arbiter.pyi +2 -2
- package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/sock.pyi +2 -0
- package/dist/typeshed-fallback/stubs/html5lib/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/_ihatexml.pyi +21 -23
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/_inputstream.pyi +79 -71
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/_tokenizer.pyi +87 -51
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/_utils.pyi +18 -11
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/constants.pyi +1 -3
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/alphabeticalattributes.pyi +3 -2
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/base.pyi +9 -6
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/inject_meta_charset.pyi +5 -3
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/lint.pyi +5 -3
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/optionaltags.pyi +1 -2
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/sanitizer.pyi +6 -6
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/whitespace.pyi +2 -2
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/html5parser.pyi +2 -2
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/serializer.pyi +75 -19
- package/dist/typeshed-fallback/stubs/html5lib/html5lib/treeadapters/sax.pyi +0 -3
- package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/__init__.pyi +3 -4
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +2 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/azure.pyi +3 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/gcp.pyi +3 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi +1 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi +2 -4
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +3 -4
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +2 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv.pyi +3 -3
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/__init__.pyi +3 -4
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/system_backend_mixin.pyi +2 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/wrapping.pyi +2 -3
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_category.pyi +2 -3
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/alarms.pyi +2 -2
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +16 -9
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +2 -1
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +3 -3
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/zoneinfo.pyi +1 -5
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/__init__.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/attrDef.pyi +13 -13
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/attribute.pyi +9 -9
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/cursor.pyi +28 -27
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/entry.pyi +11 -11
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/exceptions.pyi +8 -8
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/pooling.pyi +15 -15
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/rdns.pyi +7 -7
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/results.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/server.pyi +15 -14
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/timezone.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/tls.pyi +13 -13
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/usage.pyi +6 -6
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/__init__.pyi +4 -4
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/microsoft/dirSync.pyi +12 -12
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi +7 -7
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi +13 -13
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/operation/modify.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/operation/search.pyi +5 -5
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/formatters/formatters.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/formatters/standard.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/oid.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/rfc2849.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/rfc4512.pyi +59 -59
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/asyncStream.pyi +7 -7
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/asynchronous.pyi +6 -6
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/base.pyi +7 -7
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/ldifProducer.pyi +4 -4
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockAsync.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockBase.pyi +9 -9
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockSync.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/restartable.pyi +4 -4
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/reusable.pyi +20 -20
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/sync.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/config.pyi +2 -2
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/hashed.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/log.pyi +3 -3
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/ntlm.pyi +41 -41
- package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/repr.pyi +2 -2
- package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/__init__.pyi +4 -1
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/iana.pyi +8 -8
- package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +11 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +4 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +3 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +8 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +2 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +5 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +3 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +13 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/bipartitions.pyi +22 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +6 -5
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +0 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +2 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +17 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/perfect_graph.pyi +7 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +13 -4
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +19 -3
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +0 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/distance_measures.pyi +10 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +13 -7
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/function.pyi +3 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +12 -6
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +10 -9
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +23 -13
- package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/layout.pyi +0 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/nx_pylab.pyi +20 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/expanders.pyi +9 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/random_graphs.pyi +21 -16
- package/dist/typeshed-fallback/stubs/networkx/networkx/generators/small.pyi +3 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/node_link.pyi +2 -24
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/misc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/random_sequence.pyi +5 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/utils/union_find.pyi +12 -10
- package/dist/typeshed-fallback/stubs/parsimonious/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/parsimonious/parsimonious/exceptions.pyi +5 -3
- package/dist/typeshed-fallback/stubs/peewee/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/containers.pyi +8 -3
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/message.pyi +1 -1
- package/dist/typeshed-fallback/stubs/psutil/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +57 -77
- package/dist/typeshed-fallback/stubs/psutil/psutil/_common.pyi +135 -262
- package/dist/typeshed-fallback/stubs/psutil/psutil/_ntuples.pyi +384 -0
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psaix.pyi +100 -86
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psbsd.pyi +213 -168
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pslinux.pyi +181 -237
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psosx.pyi +81 -100
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psposix.pyi +78 -4
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pssunos.pyi +141 -119
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_aix.pyi +58 -0
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_bsd.pyi +141 -0
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_linux.pyi +47 -15
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_osx.pyi +77 -49
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_sunos.pyi +63 -0
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_windows.pyi +102 -91
- package/dist/typeshed-fallback/stubs/psutil/psutil/_pswindows.pyi +175 -200
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +5 -3
- package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/python-crontab/crontab.pyi +4 -4
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/parser/_parser.pyi +6 -7
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/rrule.pyi +28 -25
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/_common.pyi +8 -3
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/tz.pyi +21 -19
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/win.pyi +5 -4
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi +5 -1
- package/dist/typeshed-fallback/stubs/python-jenkins/jenkins/__init__.pyi +13 -6
- package/dist/typeshed-fallback/stubs/pytz/pytz/lazy.pyi +2 -2
- package/dist/typeshed-fallback/stubs/pyxdg/xdg/RecentFiles.pyi +5 -7
- package/dist/typeshed-fallback/stubs/qrbill/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +10 -0
- package/dist/typeshed-fallback/stubs/regex/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/regex/regex/__init__.pyi +64 -1
- package/dist/typeshed-fallback/stubs/regex/regex/{regex.pyi → _main.pyi} +66 -0
- package/dist/typeshed-fallback/stubs/regex/regex/_regex.pyi +1 -1
- package/dist/typeshed-fallback/stubs/regex/regex/_regex_core.pyi +59 -19
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/testutils.pyi +27 -25
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/flowables.pyi +1 -1
- package/dist/typeshed-fallback/stubs/requests/requests/exceptions.pyi +2 -1
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/data.pyi +2 -3
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/typing.pyi +0 -2
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/categorical.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +102 -45
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +6 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +8 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +14 -4
- package/dist/typeshed-fallback/stubs/simple-websocket/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/aiows.pyi +130 -0
- package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/asgi.pyi +44 -0
- package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/errors.pyi +12 -0
- package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/ws.pyi +136 -0
- package/dist/typeshed-fallback/stubs/tensorflow/METADATA.toml +16 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/__init__.pyi +437 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/_aliases.pyi +70 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/audio.pyi +7 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autodiff.pyi +63 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autograph/__init__.pyi +17 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autograph/experimental.pyi +30 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/bitwise.pyi +37 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi +2113 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_profile_printer_data_pb2.pyi +187 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi +283 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/test_compilation_environment_pb2.pyi +59 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/xla_compile_result_pb2.pyi +167 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/tsl/protobuf/bfc_memory_map_pb2.pyi +218 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/tsl/protobuf/test_log_pb2.pyi +707 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi +2681 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/xla_pb2.pyi +2558 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/config/__init__.pyi +12 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/config/experimental.pyi +16 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi +153 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi +330 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi +222 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi +64 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi +312 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi +274 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi +229 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/cpp_shape_inference_pb2.pyi +110 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi +25 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi +720 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi +116 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi +140 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi +617 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi +309 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi +210 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi +100 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi +290 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi +116 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi +218 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi +368 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi +192 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi +391 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi +166 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi +52 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi +104 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi +332 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi +368 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi +49 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi +235 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi +74 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi +56 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi +220 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi +229 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi +57 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/bfc_memory_map_pb2.pyi +15 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi +126 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi +33 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi +1867 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi +243 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi +66 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi +243 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi +746 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi +199 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi +124 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi +154 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi +33 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi +76 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi +735 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi +41 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi +73 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi +96 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi +588 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi +9 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi +51 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi +715 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi +113 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi +275 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi +164 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/status_pb2.pyi +13 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi +536 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi +160 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi +125 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi +85 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi +47 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi +1326 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi +149 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi +326 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi +213 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi +28 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi +65 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi +419 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi +65 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi +171 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi +24 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/data/__init__.pyi +272 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/data/experimental.pyi +32 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/coordinator.pyi +3 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi +11 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/dtypes.pyi +57 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/experimental/__init__.pyi +10 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/experimental/dtensor.pyi +19 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/feature_column/__init__.pyi +95 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/initializers.pyi +1 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/io/__init__.pyi +104 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/io/gfile.pyi +11 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/activations.pyi +35 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/callbacks.pyi +170 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/constraints.pyi +16 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/initializers.pyi +50 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi +446 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/losses.pyi +177 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/metrics.pyi +117 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/models.pyi +167 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi +61 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/schedules.pyi +103 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/regularizers.pyi +21 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/linalg.pyi +55 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/math.pyi +298 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/nn.pyi +194 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi +5 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/feature_column_v2.pyi +273 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/sequence_feature_column.pyi +30 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/framework/dtypes.pyi +7 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi +129 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi +89 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi +63 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/autotrackable.pyi +3 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/base.pyi +5 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/resource.pyi +9 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/ressource.pyi +7 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/training/tracking/autotrackable.pyi +3 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/random.pyi +231 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/raw_ops.pyi +44 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/saved_model/__init__.pyi +125 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/saved_model/experimental.pyi +39 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/signal.pyi +6 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/sparse.pyi +31 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/strings.pyi +241 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/summary.pyi +58 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/train/__init__.pyi +74 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/train/experimental.pyi +12 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi +156 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi +666 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi +69 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi +619 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi +291 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi +78 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi +85 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/status_pb2.pyi +34 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/types/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/types/experimental.pyi +30 -0
- package/dist/typeshed-fallback/stubs/ttkthemes/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_style.pyi +1 -1
- package/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_tk.pyi +11 -12
- package/dist/typeshed-fallback/stubs/tzdata/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/tzdata/tzdata/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/webencodings/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/webencodings/webencodings/__init__.pyi +33 -0
- package/dist/typeshed-fallback/stubs/webencodings/webencodings/labels.pyi +3 -0
- package/dist/typeshed-fallback/stubs/webencodings/webencodings/mklabels.pyi +5 -0
- package/dist/typeshed-fallback/stubs/webencodings/webencodings/x_user_defined.pyi +21 -0
- package/dist/typeshed-fallback/stubs/yt-dlp/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/extractor/common.pyi +1 -0
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/globals.pyi +12 -1
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_jsruntime.pyi +38 -0
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_legacy.pyi +2 -68
- package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_utils.pyi +1 -1
- package/package.json +7 -7
- package/dist/typeshed-fallback/stdlib/_typeshed/README.md +0 -34
- package/dist/typeshed-fallback/stubs/ExifRead/METADATA.toml +0 -3
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/_types.pyi +0 -15
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/classes.pyi +0 -47
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/exceptions.pyi +0 -2
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/exif_log.pyi +0 -24
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/heic.pyi +0 -56
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/jpeg.pyi +0 -7
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/__init__.pyi +0 -15
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/exif.pyi +0 -7
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/apple.pyi +0 -3
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/canon.pyi +0 -26
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/casio.pyi +0 -3
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/fujifilm.pyi +0 -3
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/nikon.pyi +0 -6
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/olympus.pyi +0 -6
- package/dist/typeshed-fallback/stubs/ExifRead/exifread/utils.pyi +0 -22
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +0 -16
- package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_posix.pyi +0 -34
- package/dist/typeshed-fallback/stubs/vobject/@tests/stubtest_allowlist.txt +0 -22
- /package/dist/typeshed-fallback/stubs/{ExifRead/exifread/tags/makernote → colorful/colorful}/__init__.pyi +0 -0
|
@@ -0,0 +1,2681 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
Copyright 2017 The OpenXLA Authors.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
you may not use this file except in compliance with the License.
|
|
8
|
+
You may obtain a copy of the License at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
See the License for the specific language governing permissions and
|
|
16
|
+
limitations under the License.
|
|
17
|
+
==============================================================================
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
import builtins
|
|
21
|
+
import collections.abc
|
|
22
|
+
import sys
|
|
23
|
+
import typing
|
|
24
|
+
|
|
25
|
+
import google.protobuf.descriptor
|
|
26
|
+
import google.protobuf.internal.containers
|
|
27
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
28
|
+
import google.protobuf.message
|
|
29
|
+
|
|
30
|
+
if sys.version_info >= (3, 10):
|
|
31
|
+
import typing as typing_extensions
|
|
32
|
+
else:
|
|
33
|
+
import typing_extensions
|
|
34
|
+
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
36
|
+
|
|
37
|
+
class _PrimitiveType:
|
|
38
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
39
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
40
|
+
|
|
41
|
+
class _PrimitiveTypeEnumTypeWrapper(
|
|
42
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PrimitiveType.ValueType], builtins.type
|
|
43
|
+
):
|
|
44
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
45
|
+
PRIMITIVE_TYPE_INVALID: _PrimitiveType.ValueType # 0
|
|
46
|
+
"""Invalid primitive type to serve as default."""
|
|
47
|
+
PRED: _PrimitiveType.ValueType # 1
|
|
48
|
+
"""Predicates are two-state booleans."""
|
|
49
|
+
S2: _PrimitiveType.ValueType # 26
|
|
50
|
+
"""Signed integral values of fixed width."""
|
|
51
|
+
S4: _PrimitiveType.ValueType # 21
|
|
52
|
+
S8: _PrimitiveType.ValueType # 2
|
|
53
|
+
S16: _PrimitiveType.ValueType # 3
|
|
54
|
+
S32: _PrimitiveType.ValueType # 4
|
|
55
|
+
S64: _PrimitiveType.ValueType # 5
|
|
56
|
+
U2: _PrimitiveType.ValueType # 27
|
|
57
|
+
"""Unsigned integral values of fixed width."""
|
|
58
|
+
U4: _PrimitiveType.ValueType # 22
|
|
59
|
+
U8: _PrimitiveType.ValueType # 6
|
|
60
|
+
U16: _PrimitiveType.ValueType # 7
|
|
61
|
+
U32: _PrimitiveType.ValueType # 8
|
|
62
|
+
U64: _PrimitiveType.ValueType # 9
|
|
63
|
+
F16: _PrimitiveType.ValueType # 10
|
|
64
|
+
"""Floating-point values of fixed width.
|
|
65
|
+
|
|
66
|
+
Note: if f16s are not natively supported on the device, they will be
|
|
67
|
+
converted to f16 from f32 at arbirary points in the computation.
|
|
68
|
+
"""
|
|
69
|
+
F32: _PrimitiveType.ValueType # 11
|
|
70
|
+
BF16: _PrimitiveType.ValueType # 16
|
|
71
|
+
"""Truncated 16 bit floating-point format. This is similar to IEEE's 16 bit
|
|
72
|
+
floating-point format, but uses 1 bit for the sign, 8 bits for the exponent
|
|
73
|
+
and 7 bits for the mantissa.
|
|
74
|
+
"""
|
|
75
|
+
F64: _PrimitiveType.ValueType # 12
|
|
76
|
+
F8E5M2: _PrimitiveType.ValueType # 19
|
|
77
|
+
"""FP8 dtypes, as described in this paper: https://arxiv.org/abs/2209.05433
|
|
78
|
+
|
|
79
|
+
F8E5M2 has 5 exponent bits and 2 mantissa bits, and is similar to the
|
|
80
|
+
existing IEEE types.
|
|
81
|
+
|
|
82
|
+
F8E4M3FN has 4 exponent bits and 3 mantissa bits. The "FN" means only
|
|
83
|
+
Finite and NaN values are supported. Unlike IEEE types, infinities are not
|
|
84
|
+
supported. NaN is represented when the exponent and mantissa bits are all
|
|
85
|
+
1s. All other values are finite.
|
|
86
|
+
|
|
87
|
+
F8E4M3B11FNUZ has 4 exponent bits and 3 mantissa bits and a bias of 11. The
|
|
88
|
+
"FNUZ" means only Finite and NaN values are supported; zero is unsigned.
|
|
89
|
+
Unlike IEEE types, infinities are not supported. NaN is represented when
|
|
90
|
+
the exponent and mantissa bits are all 0s with a sign bit of 1. All other
|
|
91
|
+
values are finite.
|
|
92
|
+
|
|
93
|
+
Support for these dtypes is under development. They do not yet work
|
|
94
|
+
properly in most cases.
|
|
95
|
+
TODO(b/259609697): Fully support FP8.
|
|
96
|
+
"""
|
|
97
|
+
F8E4M3FN: _PrimitiveType.ValueType # 20
|
|
98
|
+
F8E4M3B11FNUZ: _PrimitiveType.ValueType # 23
|
|
99
|
+
F8E5M2FNUZ: _PrimitiveType.ValueType # 24
|
|
100
|
+
"""FP8 dtypes, as described in this paper: https://arxiv.org/abs/2206.02915
|
|
101
|
+
|
|
102
|
+
F8E5M2FNUZ has 5 exponent bits and 2 mantissa bits.
|
|
103
|
+
F8E4M3FNUZ has 4 exponent bits and 3 mantissa bits.
|
|
104
|
+
|
|
105
|
+
The "FNUZ" means only Finite and NaN values are supported; zero is
|
|
106
|
+
unsigned. Unlike IEEE types, infinities are not supported. NaN is
|
|
107
|
+
represented when the exponent and mantissa bits are all 0s with a sign bit
|
|
108
|
+
of 1. All other values are finite.
|
|
109
|
+
|
|
110
|
+
These differences mean there's an additional exponent value available. To
|
|
111
|
+
keep the same dynamic range as an IEEE-like FP8 type, the exponent is
|
|
112
|
+
biased one more than would be expected given the number of exponent bits
|
|
113
|
+
(8 for Float8E4M3FNUZ and 16 for Float8E5M2FNUZ).
|
|
114
|
+
"""
|
|
115
|
+
F8E4M3FNUZ: _PrimitiveType.ValueType # 25
|
|
116
|
+
C64: _PrimitiveType.ValueType # 15
|
|
117
|
+
"""Complex values of fixed width.
|
|
118
|
+
Paired F32 (real, imag), as in std::complex<float>.
|
|
119
|
+
"""
|
|
120
|
+
C128: _PrimitiveType.ValueType # 18
|
|
121
|
+
"""Paired F64 (real, imag), as in std::complex<double>."""
|
|
122
|
+
TUPLE: _PrimitiveType.ValueType # 13
|
|
123
|
+
"""A tuple is a polymorphic sequence; e.g. a shape that holds different
|
|
124
|
+
sub-shapes. They are used for things like returning multiple values from a
|
|
125
|
+
computation; e.g. a computation that returns weights and biases may have a
|
|
126
|
+
signature that results in a tuple like (f32[784x2000], f32[2000])
|
|
127
|
+
|
|
128
|
+
If a shape proto has the tuple element type, it may not have any entries
|
|
129
|
+
in the dimensions field.
|
|
130
|
+
"""
|
|
131
|
+
OPAQUE_TYPE: _PrimitiveType.ValueType # 14
|
|
132
|
+
"""An opaque type used for passing context-specific data to a custom
|
|
133
|
+
operation. Shapes of this primitive type will have empty dimensions and
|
|
134
|
+
tuple_shapes fields.
|
|
135
|
+
|
|
136
|
+
(OPAQUE would be a better name for this identifier, but that conflicts with
|
|
137
|
+
a macro defined in windows.h.)
|
|
138
|
+
"""
|
|
139
|
+
TOKEN: _PrimitiveType.ValueType # 17
|
|
140
|
+
"""A token type threaded between side-effecting operations. Shapes of this
|
|
141
|
+
primitive type will have empty dimensions and tuple_shapes fields.
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
class PrimitiveType(_PrimitiveType, metaclass=_PrimitiveTypeEnumTypeWrapper):
|
|
145
|
+
"""Primitive types are the individual values that can be held in rectangular
|
|
146
|
+
multidimensional arrays. A description of the rectangular multidimensional
|
|
147
|
+
array dimensions / primitive type is given by Shape, below.
|
|
148
|
+
|
|
149
|
+
LINT.IfChange
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
PRIMITIVE_TYPE_INVALID: PrimitiveType.ValueType # 0
|
|
153
|
+
"""Invalid primitive type to serve as default."""
|
|
154
|
+
PRED: PrimitiveType.ValueType # 1
|
|
155
|
+
"""Predicates are two-state booleans."""
|
|
156
|
+
S2: PrimitiveType.ValueType # 26
|
|
157
|
+
"""Signed integral values of fixed width."""
|
|
158
|
+
S4: PrimitiveType.ValueType # 21
|
|
159
|
+
S8: PrimitiveType.ValueType # 2
|
|
160
|
+
S16: PrimitiveType.ValueType # 3
|
|
161
|
+
S32: PrimitiveType.ValueType # 4
|
|
162
|
+
S64: PrimitiveType.ValueType # 5
|
|
163
|
+
U2: PrimitiveType.ValueType # 27
|
|
164
|
+
"""Unsigned integral values of fixed width."""
|
|
165
|
+
U4: PrimitiveType.ValueType # 22
|
|
166
|
+
U8: PrimitiveType.ValueType # 6
|
|
167
|
+
U16: PrimitiveType.ValueType # 7
|
|
168
|
+
U32: PrimitiveType.ValueType # 8
|
|
169
|
+
U64: PrimitiveType.ValueType # 9
|
|
170
|
+
F16: PrimitiveType.ValueType # 10
|
|
171
|
+
"""Floating-point values of fixed width.
|
|
172
|
+
|
|
173
|
+
Note: if f16s are not natively supported on the device, they will be
|
|
174
|
+
converted to f16 from f32 at arbirary points in the computation.
|
|
175
|
+
"""
|
|
176
|
+
F32: PrimitiveType.ValueType # 11
|
|
177
|
+
BF16: PrimitiveType.ValueType # 16
|
|
178
|
+
"""Truncated 16 bit floating-point format. This is similar to IEEE's 16 bit
|
|
179
|
+
floating-point format, but uses 1 bit for the sign, 8 bits for the exponent
|
|
180
|
+
and 7 bits for the mantissa.
|
|
181
|
+
"""
|
|
182
|
+
F64: PrimitiveType.ValueType # 12
|
|
183
|
+
F8E5M2: PrimitiveType.ValueType # 19
|
|
184
|
+
"""FP8 dtypes, as described in this paper: https://arxiv.org/abs/2209.05433
|
|
185
|
+
|
|
186
|
+
F8E5M2 has 5 exponent bits and 2 mantissa bits, and is similar to the
|
|
187
|
+
existing IEEE types.
|
|
188
|
+
|
|
189
|
+
F8E4M3FN has 4 exponent bits and 3 mantissa bits. The "FN" means only
|
|
190
|
+
Finite and NaN values are supported. Unlike IEEE types, infinities are not
|
|
191
|
+
supported. NaN is represented when the exponent and mantissa bits are all
|
|
192
|
+
1s. All other values are finite.
|
|
193
|
+
|
|
194
|
+
F8E4M3B11FNUZ has 4 exponent bits and 3 mantissa bits and a bias of 11. The
|
|
195
|
+
"FNUZ" means only Finite and NaN values are supported; zero is unsigned.
|
|
196
|
+
Unlike IEEE types, infinities are not supported. NaN is represented when
|
|
197
|
+
the exponent and mantissa bits are all 0s with a sign bit of 1. All other
|
|
198
|
+
values are finite.
|
|
199
|
+
|
|
200
|
+
Support for these dtypes is under development. They do not yet work
|
|
201
|
+
properly in most cases.
|
|
202
|
+
TODO(b/259609697): Fully support FP8.
|
|
203
|
+
"""
|
|
204
|
+
F8E4M3FN: PrimitiveType.ValueType # 20
|
|
205
|
+
F8E4M3B11FNUZ: PrimitiveType.ValueType # 23
|
|
206
|
+
F8E5M2FNUZ: PrimitiveType.ValueType # 24
|
|
207
|
+
"""FP8 dtypes, as described in this paper: https://arxiv.org/abs/2206.02915
|
|
208
|
+
|
|
209
|
+
F8E5M2FNUZ has 5 exponent bits and 2 mantissa bits.
|
|
210
|
+
F8E4M3FNUZ has 4 exponent bits and 3 mantissa bits.
|
|
211
|
+
|
|
212
|
+
The "FNUZ" means only Finite and NaN values are supported; zero is
|
|
213
|
+
unsigned. Unlike IEEE types, infinities are not supported. NaN is
|
|
214
|
+
represented when the exponent and mantissa bits are all 0s with a sign bit
|
|
215
|
+
of 1. All other values are finite.
|
|
216
|
+
|
|
217
|
+
These differences mean there's an additional exponent value available. To
|
|
218
|
+
keep the same dynamic range as an IEEE-like FP8 type, the exponent is
|
|
219
|
+
biased one more than would be expected given the number of exponent bits
|
|
220
|
+
(8 for Float8E4M3FNUZ and 16 for Float8E5M2FNUZ).
|
|
221
|
+
"""
|
|
222
|
+
F8E4M3FNUZ: PrimitiveType.ValueType # 25
|
|
223
|
+
C64: PrimitiveType.ValueType # 15
|
|
224
|
+
"""Complex values of fixed width.
|
|
225
|
+
Paired F32 (real, imag), as in std::complex<float>.
|
|
226
|
+
"""
|
|
227
|
+
C128: PrimitiveType.ValueType # 18
|
|
228
|
+
"""Paired F64 (real, imag), as in std::complex<double>."""
|
|
229
|
+
TUPLE: PrimitiveType.ValueType # 13
|
|
230
|
+
"""A tuple is a polymorphic sequence; e.g. a shape that holds different
|
|
231
|
+
sub-shapes. They are used for things like returning multiple values from a
|
|
232
|
+
computation; e.g. a computation that returns weights and biases may have a
|
|
233
|
+
signature that results in a tuple like (f32[784x2000], f32[2000])
|
|
234
|
+
|
|
235
|
+
If a shape proto has the tuple element type, it may not have any entries
|
|
236
|
+
in the dimensions field.
|
|
237
|
+
"""
|
|
238
|
+
OPAQUE_TYPE: PrimitiveType.ValueType # 14
|
|
239
|
+
"""An opaque type used for passing context-specific data to a custom
|
|
240
|
+
operation. Shapes of this primitive type will have empty dimensions and
|
|
241
|
+
tuple_shapes fields.
|
|
242
|
+
|
|
243
|
+
(OPAQUE would be a better name for this identifier, but that conflicts with
|
|
244
|
+
a macro defined in windows.h.)
|
|
245
|
+
"""
|
|
246
|
+
TOKEN: PrimitiveType.ValueType # 17
|
|
247
|
+
"""A token type threaded between side-effecting operations. Shapes of this
|
|
248
|
+
primitive type will have empty dimensions and tuple_shapes fields.
|
|
249
|
+
"""
|
|
250
|
+
global___PrimitiveType = PrimitiveType
|
|
251
|
+
|
|
252
|
+
class _DimLevelType:
|
|
253
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
254
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
255
|
+
|
|
256
|
+
class _DimLevelTypeEnumTypeWrapper(
|
|
257
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DimLevelType.ValueType], builtins.type
|
|
258
|
+
):
|
|
259
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
260
|
+
DIM_DENSE: _DimLevelType.ValueType # 0
|
|
261
|
+
"""The corresponding dimension is Dense, every entry is stored."""
|
|
262
|
+
DIM_COMPRESSED: _DimLevelType.ValueType # 1
|
|
263
|
+
"""The corresponding dimension is Compressed, only nonzeros are stored."""
|
|
264
|
+
DIM_SINGLETON: _DimLevelType.ValueType # 2
|
|
265
|
+
"""The corresponding dimension contains a single coordinate, no sibling
|
|
266
|
+
elements for each parent.
|
|
267
|
+
"""
|
|
268
|
+
DIM_LOOSE_COMPRESSED: _DimLevelType.ValueType # 3
|
|
269
|
+
"""The corresponding dimension is Compressed, but with potential trailing
|
|
270
|
+
zeros, thus an extra upper bound (high) is used to exclude those zeros.
|
|
271
|
+
E.g., indices = [1, 2, 0, 0, 3, 4, 0, 0], position = [(0, 2), (4, 6)].
|
|
272
|
+
"""
|
|
273
|
+
|
|
274
|
+
class DimLevelType(_DimLevelType, metaclass=_DimLevelTypeEnumTypeWrapper):
|
|
275
|
+
"""A DimLevelType indicates the encoding method for a dimension in an array.
|
|
276
|
+
The semantics of this field are identical to those of the MLIR SparseTensor
|
|
277
|
+
dialect.
|
|
278
|
+
This should be kept in sync with the SparseTensor DimLevelType enum:
|
|
279
|
+
https://github.com/llvm/llvm-project/blob/5674a3c88088e668b684326c2194a6282e8270ff/mlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorAttrDefs.td#L86
|
|
280
|
+
"""
|
|
281
|
+
|
|
282
|
+
DIM_DENSE: DimLevelType.ValueType # 0
|
|
283
|
+
"""The corresponding dimension is Dense, every entry is stored."""
|
|
284
|
+
DIM_COMPRESSED: DimLevelType.ValueType # 1
|
|
285
|
+
"""The corresponding dimension is Compressed, only nonzeros are stored."""
|
|
286
|
+
DIM_SINGLETON: DimLevelType.ValueType # 2
|
|
287
|
+
"""The corresponding dimension contains a single coordinate, no sibling
|
|
288
|
+
elements for each parent.
|
|
289
|
+
"""
|
|
290
|
+
DIM_LOOSE_COMPRESSED: DimLevelType.ValueType # 3
|
|
291
|
+
"""The corresponding dimension is Compressed, but with potential trailing
|
|
292
|
+
zeros, thus an extra upper bound (high) is used to exclude those zeros.
|
|
293
|
+
E.g., indices = [1, 2, 0, 0, 3, 4, 0, 0], position = [(0, 2), (4, 6)].
|
|
294
|
+
"""
|
|
295
|
+
global___DimLevelType = DimLevelType
|
|
296
|
+
|
|
297
|
+
class _ProfileType:
|
|
298
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
299
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
300
|
+
|
|
301
|
+
class _ProfileTypeEnumTypeWrapper(
|
|
302
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProfileType.ValueType], builtins.type
|
|
303
|
+
):
|
|
304
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
305
|
+
INVALID: _ProfileType.ValueType # 0
|
|
306
|
+
WINDOW: _ProfileType.ValueType # 1
|
|
307
|
+
FLAG: _ProfileType.ValueType # 2
|
|
308
|
+
INTEGER: _ProfileType.ValueType # 3
|
|
309
|
+
|
|
310
|
+
class ProfileType(_ProfileType, metaclass=_ProfileTypeEnumTypeWrapper):
|
|
311
|
+
"""The type optimization profiles in use for Op-level optimizations."""
|
|
312
|
+
|
|
313
|
+
INVALID: ProfileType.ValueType # 0
|
|
314
|
+
WINDOW: ProfileType.ValueType # 1
|
|
315
|
+
FLAG: ProfileType.ValueType # 2
|
|
316
|
+
INTEGER: ProfileType.ValueType # 3
|
|
317
|
+
global___ProfileType = ProfileType
|
|
318
|
+
|
|
319
|
+
class _ProfileSource:
|
|
320
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
321
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
322
|
+
|
|
323
|
+
class _ProfileSourceEnumTypeWrapper(
|
|
324
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProfileSource.ValueType], builtins.type
|
|
325
|
+
):
|
|
326
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
327
|
+
PROFILE_SOURCE_UNKNOWN_SOURCE: _ProfileSource.ValueType # 0
|
|
328
|
+
PROFILE_SOURCE_EMBEDDED: _ProfileSource.ValueType # 1
|
|
329
|
+
PROFILE_SOURCE_REMOTE: _ProfileSource.ValueType # 2
|
|
330
|
+
|
|
331
|
+
class ProfileSource(_ProfileSource, metaclass=_ProfileSourceEnumTypeWrapper):
|
|
332
|
+
"""The source of the optimization profile."""
|
|
333
|
+
|
|
334
|
+
PROFILE_SOURCE_UNKNOWN_SOURCE: ProfileSource.ValueType # 0
|
|
335
|
+
PROFILE_SOURCE_EMBEDDED: ProfileSource.ValueType # 1
|
|
336
|
+
PROFILE_SOURCE_REMOTE: ProfileSource.ValueType # 2
|
|
337
|
+
global___ProfileSource = ProfileSource
|
|
338
|
+
|
|
339
|
+
class _CompilationEvent:
|
|
340
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
341
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
342
|
+
|
|
343
|
+
class _CompilationEventEnumTypeWrapper(
|
|
344
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CompilationEvent.ValueType], builtins.type
|
|
345
|
+
):
|
|
346
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
347
|
+
COMPILATION_EVENT_UNKNOWN_EVENT: _CompilationEvent.ValueType # 0
|
|
348
|
+
COMPILATION_EVENT_FIRST_COMPILATION: _CompilationEvent.ValueType # 1
|
|
349
|
+
COMPILATION_EVENT_RECOMPILATION: _CompilationEvent.ValueType # 2
|
|
350
|
+
|
|
351
|
+
class CompilationEvent(_CompilationEvent, metaclass=_CompilationEventEnumTypeWrapper):
|
|
352
|
+
"""The compilation event that triggered the use of the profile."""
|
|
353
|
+
|
|
354
|
+
COMPILATION_EVENT_UNKNOWN_EVENT: CompilationEvent.ValueType # 0
|
|
355
|
+
COMPILATION_EVENT_FIRST_COMPILATION: CompilationEvent.ValueType # 1
|
|
356
|
+
COMPILATION_EVENT_RECOMPILATION: CompilationEvent.ValueType # 2
|
|
357
|
+
global___CompilationEvent = CompilationEvent
|
|
358
|
+
|
|
359
|
+
class _PaddingType:
|
|
360
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
361
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
362
|
+
|
|
363
|
+
class _PaddingTypeEnumTypeWrapper(
|
|
364
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_PaddingType.ValueType], builtins.type
|
|
365
|
+
):
|
|
366
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
367
|
+
PADDING_INVALID: _PaddingType.ValueType # 0
|
|
368
|
+
PADDING_VALID: _PaddingType.ValueType # 1
|
|
369
|
+
"""Only valid portion of the base are covered."""
|
|
370
|
+
PADDING_SAME: _PaddingType.ValueType # 2
|
|
371
|
+
"""Extra is added to produce same output size as the input."""
|
|
372
|
+
|
|
373
|
+
class PaddingType(_PaddingType, metaclass=_PaddingTypeEnumTypeWrapper): ...
|
|
374
|
+
|
|
375
|
+
PADDING_INVALID: PaddingType.ValueType # 0
|
|
376
|
+
PADDING_VALID: PaddingType.ValueType # 1
|
|
377
|
+
"""Only valid portion of the base are covered."""
|
|
378
|
+
PADDING_SAME: PaddingType.ValueType # 2
|
|
379
|
+
"""Extra is added to produce same output size as the input."""
|
|
380
|
+
global___PaddingType = PaddingType
|
|
381
|
+
|
|
382
|
+
class _FftType:
|
|
383
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
384
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
385
|
+
|
|
386
|
+
class _FftTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_FftType.ValueType], builtins.type):
|
|
387
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
388
|
+
FFT: _FftType.ValueType # 0
|
|
389
|
+
"""Forward FFT; complex in, complex out."""
|
|
390
|
+
IFFT: _FftType.ValueType # 1
|
|
391
|
+
"""Inverse FFT; complex in, complex out."""
|
|
392
|
+
RFFT: _FftType.ValueType # 2
|
|
393
|
+
"""Forward real FFT; real in, fft_length / 2 + 1 complex out"""
|
|
394
|
+
IRFFT: _FftType.ValueType # 3
|
|
395
|
+
"""Inverse real FFT; fft_length / 2 + 1 complex in,"""
|
|
396
|
+
|
|
397
|
+
class FftType(_FftType, metaclass=_FftTypeEnumTypeWrapper): ...
|
|
398
|
+
|
|
399
|
+
FFT: FftType.ValueType # 0
|
|
400
|
+
"""Forward FFT; complex in, complex out."""
|
|
401
|
+
IFFT: FftType.ValueType # 1
|
|
402
|
+
"""Inverse FFT; complex in, complex out."""
|
|
403
|
+
RFFT: FftType.ValueType # 2
|
|
404
|
+
"""Forward real FFT; real in, fft_length / 2 + 1 complex out"""
|
|
405
|
+
IRFFT: FftType.ValueType # 3
|
|
406
|
+
"""Inverse real FFT; fft_length / 2 + 1 complex in,"""
|
|
407
|
+
global___FftType = FftType
|
|
408
|
+
|
|
409
|
+
class _SparsityType:
|
|
410
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
411
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
412
|
+
|
|
413
|
+
class _SparsityTypeEnumTypeWrapper(
|
|
414
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SparsityType.ValueType], builtins.type
|
|
415
|
+
):
|
|
416
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
417
|
+
SPARSITY_INVALID: _SparsityType.ValueType # 0
|
|
418
|
+
SPARSITY_STRUCTURED_N_M: _SparsityType.ValueType # 1
|
|
419
|
+
"""Structured N:M sparsity."""
|
|
420
|
+
|
|
421
|
+
class SparsityType(_SparsityType, metaclass=_SparsityTypeEnumTypeWrapper): ...
|
|
422
|
+
|
|
423
|
+
SPARSITY_INVALID: SparsityType.ValueType # 0
|
|
424
|
+
SPARSITY_STRUCTURED_N_M: SparsityType.ValueType # 1
|
|
425
|
+
"""Structured N:M sparsity."""
|
|
426
|
+
global___SparsityType = SparsityType
|
|
427
|
+
|
|
428
|
+
class _RandomDistribution:
|
|
429
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
430
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
431
|
+
|
|
432
|
+
class _RandomDistributionEnumTypeWrapper(
|
|
433
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RandomDistribution.ValueType], builtins.type
|
|
434
|
+
):
|
|
435
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
436
|
+
RNG_INVALID: _RandomDistribution.ValueType # 0
|
|
437
|
+
RNG_UNIFORM: _RandomDistribution.ValueType # 1
|
|
438
|
+
"""Creates a uniform-distribution-generated random number on the semi-open
|
|
439
|
+
interval [parameter[0], parameter[1]).
|
|
440
|
+
"""
|
|
441
|
+
RNG_NORMAL: _RandomDistribution.ValueType # 2
|
|
442
|
+
"""Creates a normal-distribution-generated random number with mean
|
|
443
|
+
parameter[0] and standard deviation parameter[1].
|
|
444
|
+
"""
|
|
445
|
+
|
|
446
|
+
class RandomDistribution(_RandomDistribution, metaclass=_RandomDistributionEnumTypeWrapper): ...
|
|
447
|
+
|
|
448
|
+
RNG_INVALID: RandomDistribution.ValueType # 0
|
|
449
|
+
RNG_UNIFORM: RandomDistribution.ValueType # 1
|
|
450
|
+
"""Creates a uniform-distribution-generated random number on the semi-open
|
|
451
|
+
interval [parameter[0], parameter[1]).
|
|
452
|
+
"""
|
|
453
|
+
RNG_NORMAL: RandomDistribution.ValueType # 2
|
|
454
|
+
"""Creates a normal-distribution-generated random number with mean
|
|
455
|
+
parameter[0] and standard deviation parameter[1].
|
|
456
|
+
"""
|
|
457
|
+
global___RandomDistribution = RandomDistribution
|
|
458
|
+
|
|
459
|
+
class _RandomAlgorithm:
|
|
460
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
461
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
462
|
+
|
|
463
|
+
class _RandomAlgorithmEnumTypeWrapper(
|
|
464
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RandomAlgorithm.ValueType], builtins.type
|
|
465
|
+
):
|
|
466
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
467
|
+
RNG_DEFAULT: _RandomAlgorithm.ValueType # 0
|
|
468
|
+
"""Backend dependent default algorithm."""
|
|
469
|
+
RNG_THREE_FRY: _RandomAlgorithm.ValueType # 1
|
|
470
|
+
RNG_PHILOX: _RandomAlgorithm.ValueType # 2
|
|
471
|
+
"""Next: 2"""
|
|
472
|
+
|
|
473
|
+
class RandomAlgorithm(_RandomAlgorithm, metaclass=_RandomAlgorithmEnumTypeWrapper): ...
|
|
474
|
+
|
|
475
|
+
RNG_DEFAULT: RandomAlgorithm.ValueType # 0
|
|
476
|
+
"""Backend dependent default algorithm."""
|
|
477
|
+
RNG_THREE_FRY: RandomAlgorithm.ValueType # 1
|
|
478
|
+
RNG_PHILOX: RandomAlgorithm.ValueType # 2
|
|
479
|
+
"""Next: 2"""
|
|
480
|
+
global___RandomAlgorithm = RandomAlgorithm
|
|
481
|
+
|
|
482
|
+
@typing.final
|
|
483
|
+
class PaddingConfig(google.protobuf.message.Message):
|
|
484
|
+
"""Describes the padding configuration for Pad operation. The padding amount on
|
|
485
|
+
both edges as well as between the elements are specified for each dimension.
|
|
486
|
+
"""
|
|
487
|
+
|
|
488
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
489
|
+
|
|
490
|
+
@typing.final
|
|
491
|
+
class PaddingConfigDimension(google.protobuf.message.Message):
|
|
492
|
+
"""Describes the padding configuration for a dimension."""
|
|
493
|
+
|
|
494
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
495
|
+
|
|
496
|
+
EDGE_PADDING_LOW_FIELD_NUMBER: builtins.int
|
|
497
|
+
EDGE_PADDING_HIGH_FIELD_NUMBER: builtins.int
|
|
498
|
+
INTERIOR_PADDING_FIELD_NUMBER: builtins.int
|
|
499
|
+
edge_padding_low: builtins.int
|
|
500
|
+
"""Padding amount on the low-end (next to the index 0). May be negative."""
|
|
501
|
+
edge_padding_high: builtins.int
|
|
502
|
+
"""Padding amount on the high-end (next to the highest index). May be
|
|
503
|
+
negative.
|
|
504
|
+
"""
|
|
505
|
+
interior_padding: builtins.int
|
|
506
|
+
"""Padding amount between the elements. May not be negative."""
|
|
507
|
+
def __init__(
|
|
508
|
+
self,
|
|
509
|
+
*,
|
|
510
|
+
edge_padding_low: builtins.int | None = ...,
|
|
511
|
+
edge_padding_high: builtins.int | None = ...,
|
|
512
|
+
interior_padding: builtins.int | None = ...,
|
|
513
|
+
) -> None: ...
|
|
514
|
+
def ClearField(
|
|
515
|
+
self,
|
|
516
|
+
field_name: typing.Literal[
|
|
517
|
+
"edge_padding_high",
|
|
518
|
+
b"edge_padding_high",
|
|
519
|
+
"edge_padding_low",
|
|
520
|
+
b"edge_padding_low",
|
|
521
|
+
"interior_padding",
|
|
522
|
+
b"interior_padding",
|
|
523
|
+
],
|
|
524
|
+
) -> None: ...
|
|
525
|
+
|
|
526
|
+
DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
527
|
+
@property
|
|
528
|
+
def dimensions(
|
|
529
|
+
self,
|
|
530
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PaddingConfig.PaddingConfigDimension]:
|
|
531
|
+
"""The padding configuration for all dimensions."""
|
|
532
|
+
|
|
533
|
+
def __init__(
|
|
534
|
+
self, *, dimensions: collections.abc.Iterable[global___PaddingConfig.PaddingConfigDimension] | None = ...
|
|
535
|
+
) -> None: ...
|
|
536
|
+
def ClearField(self, field_name: typing.Literal["dimensions", b"dimensions"]) -> None: ...
|
|
537
|
+
|
|
538
|
+
global___PaddingConfig = PaddingConfig
|
|
539
|
+
|
|
540
|
+
@typing.final
|
|
541
|
+
class TileProto(google.protobuf.message.Message):
|
|
542
|
+
"""Describes a tile used in tiling-based layout. Refer to
|
|
543
|
+
g3doc/third_party/xla/docs/tiled_layout.md for details about tiling-based
|
|
544
|
+
layout.
|
|
545
|
+
"""
|
|
546
|
+
|
|
547
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
548
|
+
|
|
549
|
+
DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
550
|
+
@property
|
|
551
|
+
def dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
552
|
+
"""Number of elements in each dimension of the tile. It's ordered from the
|
|
553
|
+
most major dimension of the tile to the most minor dimension of the tile.
|
|
554
|
+
The dimensions correspond to a suffix of the dimensions of the shape being
|
|
555
|
+
tiled.
|
|
556
|
+
"""
|
|
557
|
+
|
|
558
|
+
def __init__(self, *, dimensions: collections.abc.Iterable[builtins.int] | None = ...) -> None: ...
|
|
559
|
+
def ClearField(self, field_name: typing.Literal["dimensions", b"dimensions"]) -> None: ...
|
|
560
|
+
|
|
561
|
+
global___TileProto = TileProto
|
|
562
|
+
|
|
563
|
+
@typing.final
|
|
564
|
+
class SplitConfigProto(google.protobuf.message.Message):
|
|
565
|
+
"""Describes how data should be split between different memories."""
|
|
566
|
+
|
|
567
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
568
|
+
|
|
569
|
+
DIMENSION_FIELD_NUMBER: builtins.int
|
|
570
|
+
SPLIT_INDICES_FIELD_NUMBER: builtins.int
|
|
571
|
+
dimension: builtins.int
|
|
572
|
+
"""The dimension that is split."""
|
|
573
|
+
@property
|
|
574
|
+
def split_indices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
575
|
+
"""The indices where each split point occurs. For example, if the dimension
|
|
576
|
+
size is 1024, a split_indices value of {512} indicates a two-way split of
|
|
577
|
+
data through the middle.
|
|
578
|
+
"""
|
|
579
|
+
|
|
580
|
+
def __init__(
|
|
581
|
+
self, *, dimension: builtins.int | None = ..., split_indices: collections.abc.Iterable[builtins.int] | None = ...
|
|
582
|
+
) -> None: ...
|
|
583
|
+
def ClearField(self, field_name: typing.Literal["dimension", b"dimension", "split_indices", b"split_indices"]) -> None: ...
|
|
584
|
+
|
|
585
|
+
global___SplitConfigProto = SplitConfigProto
|
|
586
|
+
|
|
587
|
+
@typing.final
|
|
588
|
+
class LayoutProto(google.protobuf.message.Message):
|
|
589
|
+
"""A layout describes how the array is placed in (1D) memory space. This
|
|
590
|
+
includes the minor-to-major ordering of dimensions within a shape.
|
|
591
|
+
|
|
592
|
+
Clients must specify the layouts of input Literals to the
|
|
593
|
+
computation. Layouts specified in interior operations which take Shapes (for
|
|
594
|
+
example, Convert) are ignored.
|
|
595
|
+
|
|
596
|
+
See the XLA documentation for more information on shapes and layouts.
|
|
597
|
+
|
|
598
|
+
LINT.IfChange
|
|
599
|
+
"""
|
|
600
|
+
|
|
601
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
602
|
+
|
|
603
|
+
DIM_LEVEL_TYPES_FIELD_NUMBER: builtins.int
|
|
604
|
+
DIM_UNIQUE_FIELD_NUMBER: builtins.int
|
|
605
|
+
DIM_ORDERED_FIELD_NUMBER: builtins.int
|
|
606
|
+
MINOR_TO_MAJOR_FIELD_NUMBER: builtins.int
|
|
607
|
+
TILES_FIELD_NUMBER: builtins.int
|
|
608
|
+
TAIL_PADDING_ALIGNMENT_IN_ELEMENTS_FIELD_NUMBER: builtins.int
|
|
609
|
+
ELEMENT_SIZE_IN_BITS_FIELD_NUMBER: builtins.int
|
|
610
|
+
MEMORY_SPACE_FIELD_NUMBER: builtins.int
|
|
611
|
+
INDEX_PRIMITIVE_TYPE_FIELD_NUMBER: builtins.int
|
|
612
|
+
POINTER_PRIMITIVE_TYPE_FIELD_NUMBER: builtins.int
|
|
613
|
+
PHYSICAL_SHAPE_FIELD_NUMBER: builtins.int
|
|
614
|
+
DYNAMIC_SHAPE_METADATA_PREFIX_BYTES_FIELD_NUMBER: builtins.int
|
|
615
|
+
SPLIT_CONFIGS_FIELD_NUMBER: builtins.int
|
|
616
|
+
tail_padding_alignment_in_elements: builtins.int
|
|
617
|
+
"""The shape is padded at the end to multiple of, in terms of number of
|
|
618
|
+
elements. This is useful when tiling does not bring the shape to certain
|
|
619
|
+
desired granules. Tiling effectively pads/reshapes/transposes the shape
|
|
620
|
+
to another shape. This field pads the total number of elements of that
|
|
621
|
+
new shape to a multiple of certain number of elements. This is useful such
|
|
622
|
+
as we want a layout which does not tile the data but still requires it to
|
|
623
|
+
be padded to certain number of elements.
|
|
624
|
+
"""
|
|
625
|
+
element_size_in_bits: builtins.int
|
|
626
|
+
"""(Optional) Bit size of each element. When unspecified or being 0, default
|
|
627
|
+
to ShapeUtil::ByteSizeOfPrimitiveType.
|
|
628
|
+
"""
|
|
629
|
+
memory_space: builtins.int
|
|
630
|
+
"""Memory space where this array resides. The integer field is interpreted in
|
|
631
|
+
a backend-specific manner.
|
|
632
|
+
"""
|
|
633
|
+
index_primitive_type: global___PrimitiveType.ValueType
|
|
634
|
+
"""The integer types to be used for indices and pointers. These fields must
|
|
635
|
+
not be used unless the layout represents a sparse array. The PrimitiveType
|
|
636
|
+
must correspond to an unsigned integer (U8, U16, U32, or U64).
|
|
637
|
+
If not provided, the compiler will use the largest unsigned integer
|
|
638
|
+
that is naturally supported by the target device (U32 or U64 in currently
|
|
639
|
+
supported devices).
|
|
640
|
+
"""
|
|
641
|
+
pointer_primitive_type: global___PrimitiveType.ValueType
|
|
642
|
+
dynamic_shape_metadata_prefix_bytes: builtins.int
|
|
643
|
+
"""The dynamic shape metadata size in bytes in front of the shape data. The
|
|
644
|
+
field may be non-zero for a static shape whose associated buffer is for a
|
|
645
|
+
dynamic shape, e.g. a result of SliceToDynamic.
|
|
646
|
+
"""
|
|
647
|
+
@property
|
|
648
|
+
def dim_level_types(
|
|
649
|
+
self,
|
|
650
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___DimLevelType.ValueType]:
|
|
651
|
+
"""The dimension level type list for this array, specifying the way in which
|
|
652
|
+
each array dimension is represented in memory. If this list is empty, the
|
|
653
|
+
array is assumed to be dense.
|
|
654
|
+
"""
|
|
655
|
+
|
|
656
|
+
@property
|
|
657
|
+
def dim_unique(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]:
|
|
658
|
+
"""Whether each dimension is unique or ordered. Each of the following lists
|
|
659
|
+
must be empty, or have one entry for each entry of dim_level_types. If
|
|
660
|
+
either list is empty, all dimensions are assumed to be unique and ordered,
|
|
661
|
+
respectively. Entries in this list may not be false for some DimLevelType
|
|
662
|
+
values (such as DIM_DENSE in particular).
|
|
663
|
+
"""
|
|
664
|
+
|
|
665
|
+
@property
|
|
666
|
+
def dim_ordered(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ...
|
|
667
|
+
@property
|
|
668
|
+
def minor_to_major(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
669
|
+
"""Sequence of dimension numbers, from minor (fastest varying index) to major
|
|
670
|
+
(slowest varying index). This field is required.
|
|
671
|
+
"""
|
|
672
|
+
|
|
673
|
+
@property
|
|
674
|
+
def tiles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TileProto]:
|
|
675
|
+
"""A sequence of tiles, starting from the tile that's applied first to the
|
|
676
|
+
Shape.
|
|
677
|
+
|
|
678
|
+
TODO(b/119839262): implement tiling in each backend or add Unimplemented
|
|
679
|
+
error.
|
|
680
|
+
"""
|
|
681
|
+
|
|
682
|
+
@property
|
|
683
|
+
def physical_shape(self) -> global___ShapeProto:
|
|
684
|
+
"""The physical, on-device shape used to represent the shape this layout
|
|
685
|
+
belongs to. Only used for sparse arrays.
|
|
686
|
+
The layout(s) contained within the physical shape should not also contain
|
|
687
|
+
a physical shape.
|
|
688
|
+
"""
|
|
689
|
+
|
|
690
|
+
@property
|
|
691
|
+
def split_configs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SplitConfigProto]:
|
|
692
|
+
"""The split configurations which describe if/how the data is split between
|
|
693
|
+
different memories.
|
|
694
|
+
"""
|
|
695
|
+
|
|
696
|
+
def __init__(
|
|
697
|
+
self,
|
|
698
|
+
*,
|
|
699
|
+
dim_level_types: collections.abc.Iterable[global___DimLevelType.ValueType] | None = ...,
|
|
700
|
+
dim_unique: collections.abc.Iterable[builtins.bool] | None = ...,
|
|
701
|
+
dim_ordered: collections.abc.Iterable[builtins.bool] | None = ...,
|
|
702
|
+
minor_to_major: collections.abc.Iterable[builtins.int] | None = ...,
|
|
703
|
+
tiles: collections.abc.Iterable[global___TileProto] | None = ...,
|
|
704
|
+
tail_padding_alignment_in_elements: builtins.int | None = ...,
|
|
705
|
+
element_size_in_bits: builtins.int | None = ...,
|
|
706
|
+
memory_space: builtins.int | None = ...,
|
|
707
|
+
index_primitive_type: global___PrimitiveType.ValueType | None = ...,
|
|
708
|
+
pointer_primitive_type: global___PrimitiveType.ValueType | None = ...,
|
|
709
|
+
physical_shape: global___ShapeProto | None = ...,
|
|
710
|
+
dynamic_shape_metadata_prefix_bytes: builtins.int | None = ...,
|
|
711
|
+
split_configs: collections.abc.Iterable[global___SplitConfigProto] | None = ...,
|
|
712
|
+
) -> None: ...
|
|
713
|
+
def HasField(self, field_name: typing.Literal["physical_shape", b"physical_shape"]) -> builtins.bool: ...
|
|
714
|
+
def ClearField(
|
|
715
|
+
self,
|
|
716
|
+
field_name: typing.Literal[
|
|
717
|
+
"dim_level_types",
|
|
718
|
+
b"dim_level_types",
|
|
719
|
+
"dim_ordered",
|
|
720
|
+
b"dim_ordered",
|
|
721
|
+
"dim_unique",
|
|
722
|
+
b"dim_unique",
|
|
723
|
+
"dynamic_shape_metadata_prefix_bytes",
|
|
724
|
+
b"dynamic_shape_metadata_prefix_bytes",
|
|
725
|
+
"element_size_in_bits",
|
|
726
|
+
b"element_size_in_bits",
|
|
727
|
+
"index_primitive_type",
|
|
728
|
+
b"index_primitive_type",
|
|
729
|
+
"memory_space",
|
|
730
|
+
b"memory_space",
|
|
731
|
+
"minor_to_major",
|
|
732
|
+
b"minor_to_major",
|
|
733
|
+
"physical_shape",
|
|
734
|
+
b"physical_shape",
|
|
735
|
+
"pointer_primitive_type",
|
|
736
|
+
b"pointer_primitive_type",
|
|
737
|
+
"split_configs",
|
|
738
|
+
b"split_configs",
|
|
739
|
+
"tail_padding_alignment_in_elements",
|
|
740
|
+
b"tail_padding_alignment_in_elements",
|
|
741
|
+
"tiles",
|
|
742
|
+
b"tiles",
|
|
743
|
+
],
|
|
744
|
+
) -> None: ...
|
|
745
|
+
|
|
746
|
+
global___LayoutProto = LayoutProto
|
|
747
|
+
|
|
748
|
+
@typing.final
|
|
749
|
+
class ShapeProto(google.protobuf.message.Message):
|
|
750
|
+
"""A shape describes the number of dimensions in the array, the size of each
|
|
751
|
+
dimension, and the primitive component type.
|
|
752
|
+
|
|
753
|
+
Tuples are a special case in that they have rank zero and have tuple_shapes
|
|
754
|
+
defined.
|
|
755
|
+
|
|
756
|
+
See the XLA documentation for more information on shapes and layouts.
|
|
757
|
+
|
|
758
|
+
LINT.IfChange
|
|
759
|
+
"""
|
|
760
|
+
|
|
761
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
762
|
+
|
|
763
|
+
ELEMENT_TYPE_FIELD_NUMBER: builtins.int
|
|
764
|
+
DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
765
|
+
TUPLE_SHAPES_FIELD_NUMBER: builtins.int
|
|
766
|
+
LAYOUT_FIELD_NUMBER: builtins.int
|
|
767
|
+
IS_DYNAMIC_DIMENSION_FIELD_NUMBER: builtins.int
|
|
768
|
+
element_type: global___PrimitiveType.ValueType
|
|
769
|
+
"""The element type for this shape."""
|
|
770
|
+
@property
|
|
771
|
+
def dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
772
|
+
"""The size (number of elements) for each dimension, or an upper bound on the
|
|
773
|
+
size if the dimension is dynamic. In XLA, dimensions are numbered from 0
|
|
774
|
+
to N-1 for an N-dimensional array. The first element of 'dimensions' is the
|
|
775
|
+
size of dimension 0, the second element is the size of dimension 1, and so
|
|
776
|
+
forth. Empty list indicates a scalar.
|
|
777
|
+
|
|
778
|
+
If the respective element in 'is_dimension_dynamic' is true then the value
|
|
779
|
+
in this field represents an upper bound on the size of the dimension.
|
|
780
|
+
"""
|
|
781
|
+
|
|
782
|
+
@property
|
|
783
|
+
def tuple_shapes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShapeProto]:
|
|
784
|
+
"""For tuples only, the shapes of constituent shapes in the tuple sequence."""
|
|
785
|
+
|
|
786
|
+
@property
|
|
787
|
+
def layout(self) -> global___LayoutProto:
|
|
788
|
+
"""The layout used to back this shape."""
|
|
789
|
+
|
|
790
|
+
@property
|
|
791
|
+
def is_dynamic_dimension(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]:
|
|
792
|
+
"""For arrays, this indicates whether or not each dimension is
|
|
793
|
+
dynamically-sized. The number of elements in this repeated field should be
|
|
794
|
+
zero (indicating that no dimensions are dynamic) or equal to the number of
|
|
795
|
+
elements in the 'dimensions' field.
|
|
796
|
+
"""
|
|
797
|
+
|
|
798
|
+
def __init__(
|
|
799
|
+
self,
|
|
800
|
+
*,
|
|
801
|
+
element_type: global___PrimitiveType.ValueType | None = ...,
|
|
802
|
+
dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
803
|
+
tuple_shapes: collections.abc.Iterable[global___ShapeProto] | None = ...,
|
|
804
|
+
layout: global___LayoutProto | None = ...,
|
|
805
|
+
is_dynamic_dimension: collections.abc.Iterable[builtins.bool] | None = ...,
|
|
806
|
+
) -> None: ...
|
|
807
|
+
def HasField(self, field_name: typing.Literal["layout", b"layout"]) -> builtins.bool: ...
|
|
808
|
+
def ClearField(
|
|
809
|
+
self,
|
|
810
|
+
field_name: typing.Literal[
|
|
811
|
+
"dimensions",
|
|
812
|
+
b"dimensions",
|
|
813
|
+
"element_type",
|
|
814
|
+
b"element_type",
|
|
815
|
+
"is_dynamic_dimension",
|
|
816
|
+
b"is_dynamic_dimension",
|
|
817
|
+
"layout",
|
|
818
|
+
b"layout",
|
|
819
|
+
"tuple_shapes",
|
|
820
|
+
b"tuple_shapes",
|
|
821
|
+
],
|
|
822
|
+
) -> None: ...
|
|
823
|
+
|
|
824
|
+
global___ShapeProto = ShapeProto
|
|
825
|
+
|
|
826
|
+
@typing.final
|
|
827
|
+
class ProgramShapeProto(google.protobuf.message.Message):
|
|
828
|
+
"""Shape of the parameters and output of a computation (like a traditional
|
|
829
|
+
function signature).
|
|
830
|
+
"""
|
|
831
|
+
|
|
832
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
833
|
+
|
|
834
|
+
PARAMETERS_FIELD_NUMBER: builtins.int
|
|
835
|
+
RESULT_FIELD_NUMBER: builtins.int
|
|
836
|
+
PARAMETER_NAMES_FIELD_NUMBER: builtins.int
|
|
837
|
+
@property
|
|
838
|
+
def parameters(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShapeProto]: ...
|
|
839
|
+
@property
|
|
840
|
+
def result(self) -> global___ShapeProto: ...
|
|
841
|
+
@property
|
|
842
|
+
def parameter_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
843
|
+
def __init__(
|
|
844
|
+
self,
|
|
845
|
+
*,
|
|
846
|
+
parameters: collections.abc.Iterable[global___ShapeProto] | None = ...,
|
|
847
|
+
result: global___ShapeProto | None = ...,
|
|
848
|
+
parameter_names: collections.abc.Iterable[builtins.str] | None = ...,
|
|
849
|
+
) -> None: ...
|
|
850
|
+
def HasField(self, field_name: typing.Literal["result", b"result"]) -> builtins.bool: ...
|
|
851
|
+
def ClearField(
|
|
852
|
+
self, field_name: typing.Literal["parameter_names", b"parameter_names", "parameters", b"parameters", "result", b"result"]
|
|
853
|
+
) -> None: ...
|
|
854
|
+
|
|
855
|
+
global___ProgramShapeProto = ProgramShapeProto
|
|
856
|
+
|
|
857
|
+
@typing.final
|
|
858
|
+
class ComputationStats(google.protobuf.message.Message):
|
|
859
|
+
"""Statistics of a computation."""
|
|
860
|
+
|
|
861
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
862
|
+
|
|
863
|
+
FLOP_COUNT_FIELD_NUMBER: builtins.int
|
|
864
|
+
TRANSCENDENTAL_COUNT_FIELD_NUMBER: builtins.int
|
|
865
|
+
flop_count: builtins.float
|
|
866
|
+
"""The number of floating point operations in the computation."""
|
|
867
|
+
transcendental_count: builtins.float
|
|
868
|
+
"""The number of transcendental operations (e.g., exp) in the computation."""
|
|
869
|
+
def __init__(self, *, flop_count: builtins.float | None = ..., transcendental_count: builtins.float | None = ...) -> None: ...
|
|
870
|
+
def ClearField(
|
|
871
|
+
self, field_name: typing.Literal["flop_count", b"flop_count", "transcendental_count", b"transcendental_count"]
|
|
872
|
+
) -> None: ...
|
|
873
|
+
|
|
874
|
+
global___ComputationStats = ComputationStats
|
|
875
|
+
|
|
876
|
+
@typing.final
|
|
877
|
+
class OpMetadata(google.protobuf.message.Message):
|
|
878
|
+
"""Symbolization metadata for HLO Instructions.
|
|
879
|
+
|
|
880
|
+
This metadata is used for debugging XLA code generation, as well as
|
|
881
|
+
performance profiling of XLA-generated executables.
|
|
882
|
+
"""
|
|
883
|
+
|
|
884
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
885
|
+
|
|
886
|
+
@typing.final
|
|
887
|
+
class ProfileInfo(google.protobuf.message.Message):
|
|
888
|
+
"""Information about the optimization profile that this operation contains."""
|
|
889
|
+
|
|
890
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
891
|
+
|
|
892
|
+
PROFILE_TYPE_FIELD_NUMBER: builtins.int
|
|
893
|
+
RELATIVE_SPEEDUP_FIELD_NUMBER: builtins.int
|
|
894
|
+
PROFILE_SOURCE_FIELD_NUMBER: builtins.int
|
|
895
|
+
COMPILATION_EVENT_FIELD_NUMBER: builtins.int
|
|
896
|
+
relative_speedup: builtins.float
|
|
897
|
+
"""Speedup of tuned config compared to default config.
|
|
898
|
+
TODO(b/203817882) Set the relative_speedup.
|
|
899
|
+
"""
|
|
900
|
+
profile_source: global___ProfileSource.ValueType
|
|
901
|
+
"""The source of the optimization profiles that this operation contains."""
|
|
902
|
+
compilation_event: global___CompilationEvent.ValueType
|
|
903
|
+
"""The compilation event that triggered the use of the profiles."""
|
|
904
|
+
@property
|
|
905
|
+
def profile_type(
|
|
906
|
+
self,
|
|
907
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ProfileType.ValueType]:
|
|
908
|
+
"""The type of optimization profiles that this operation contains."""
|
|
909
|
+
|
|
910
|
+
def __init__(
|
|
911
|
+
self,
|
|
912
|
+
*,
|
|
913
|
+
profile_type: collections.abc.Iterable[global___ProfileType.ValueType] | None = ...,
|
|
914
|
+
relative_speedup: builtins.float | None = ...,
|
|
915
|
+
profile_source: global___ProfileSource.ValueType | None = ...,
|
|
916
|
+
compilation_event: global___CompilationEvent.ValueType | None = ...,
|
|
917
|
+
) -> None: ...
|
|
918
|
+
def ClearField(
|
|
919
|
+
self,
|
|
920
|
+
field_name: typing.Literal[
|
|
921
|
+
"compilation_event",
|
|
922
|
+
b"compilation_event",
|
|
923
|
+
"profile_source",
|
|
924
|
+
b"profile_source",
|
|
925
|
+
"profile_type",
|
|
926
|
+
b"profile_type",
|
|
927
|
+
"relative_speedup",
|
|
928
|
+
b"relative_speedup",
|
|
929
|
+
],
|
|
930
|
+
) -> None: ...
|
|
931
|
+
|
|
932
|
+
OP_TYPE_FIELD_NUMBER: builtins.int
|
|
933
|
+
OP_NAME_FIELD_NUMBER: builtins.int
|
|
934
|
+
SOURCE_FILE_FIELD_NUMBER: builtins.int
|
|
935
|
+
SOURCE_LINE_FIELD_NUMBER: builtins.int
|
|
936
|
+
PROFILE_TYPE_FIELD_NUMBER: builtins.int
|
|
937
|
+
SIZE_OF_GENERATED_CODE_IN_BYTES_FIELD_NUMBER: builtins.int
|
|
938
|
+
SIZE_OF_MEMORY_WORKING_SET_IN_BYTES_FIELD_NUMBER: builtins.int
|
|
939
|
+
PROFILE_INFO_FIELD_NUMBER: builtins.int
|
|
940
|
+
DEDUPLICATED_NAME_FIELD_NUMBER: builtins.int
|
|
941
|
+
PRESERVE_LAYOUT_FIELD_NUMBER: builtins.int
|
|
942
|
+
STACK_FRAME_ID_FIELD_NUMBER: builtins.int
|
|
943
|
+
SCHEDULING_NAME_FIELD_NUMBER: builtins.int
|
|
944
|
+
op_type: builtins.str
|
|
945
|
+
"""The framework op name that generated this XLA op.
|
|
946
|
+
|
|
947
|
+
Frameworks that build on top of XLA should mirror the names of their ops
|
|
948
|
+
back to users by specifying the op_type. In this way, even if the
|
|
949
|
+
framework's "ops" are implemented as multiple XLA HLO Ops, they can be
|
|
950
|
+
grouped appropriately. (e.g. if a SoftMax layer is emitted into XLA as
|
|
951
|
+
multiple ops, then each op should have the op_type be "SoftMax".)
|
|
952
|
+
"""
|
|
953
|
+
op_name: builtins.str
|
|
954
|
+
"""The user-specified name of the op.
|
|
955
|
+
|
|
956
|
+
This name is often unique within a computation. Note: some frameworks
|
|
957
|
+
add auto-generated names if the user does not provide one.
|
|
958
|
+
"""
|
|
959
|
+
source_file: builtins.str
|
|
960
|
+
"""Indicate a file and line that this op is associated to in a user's program.
|
|
961
|
+
|
|
962
|
+
e.g. it could be the file and line of user code that generated the op.
|
|
963
|
+
"""
|
|
964
|
+
source_line: builtins.int
|
|
965
|
+
size_of_generated_code_in_bytes: builtins.int
|
|
966
|
+
"""The footprint of the generated code for the instruction."""
|
|
967
|
+
size_of_memory_working_set_in_bytes: builtins.int
|
|
968
|
+
"""The size of the working set, i.e., the amount of memory, used by the
|
|
969
|
+
instruction in a compiler-managed fast device memory.
|
|
970
|
+
"""
|
|
971
|
+
deduplicated_name: builtins.str
|
|
972
|
+
"""Deduplicated HLO name for this op. In some cases, we can have multiple
|
|
973
|
+
instructions (e.g. fusions) that are considered duplicates. We want to
|
|
974
|
+
group them together under the same name so that we can group them together
|
|
975
|
+
during analysis (e.g. HLO Op Profile tool in Xprof).
|
|
976
|
+
E.g. If we have fusion.1, fusion.2, and fusion.3 marked as duplicates,
|
|
977
|
+
fusion.2 and fusion.3 will have deduplicated_name = fusion.1
|
|
978
|
+
"""
|
|
979
|
+
preserve_layout: builtins.bool
|
|
980
|
+
"""Whether to preserve the layout of the HLO op."""
|
|
981
|
+
stack_frame_id: builtins.int
|
|
982
|
+
"""1-based position of the frame in frames flat array.
|
|
983
|
+
Ids are 1-based to keep 0 value as representation of non-set property.
|
|
984
|
+
"""
|
|
985
|
+
scheduling_name: builtins.str
|
|
986
|
+
"""Instruction name available upon scheduling."""
|
|
987
|
+
@property
|
|
988
|
+
def profile_type(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___ProfileType.ValueType]:
|
|
989
|
+
"""Deprecated, use [ProfileInfo][profile_type] instead."""
|
|
990
|
+
|
|
991
|
+
@property
|
|
992
|
+
def profile_info(self) -> global___OpMetadata.ProfileInfo:
|
|
993
|
+
"""Profile information for the Op."""
|
|
994
|
+
|
|
995
|
+
def __init__(
|
|
996
|
+
self,
|
|
997
|
+
*,
|
|
998
|
+
op_type: builtins.str | None = ...,
|
|
999
|
+
op_name: builtins.str | None = ...,
|
|
1000
|
+
source_file: builtins.str | None = ...,
|
|
1001
|
+
source_line: builtins.int | None = ...,
|
|
1002
|
+
profile_type: collections.abc.Iterable[global___ProfileType.ValueType] | None = ...,
|
|
1003
|
+
size_of_generated_code_in_bytes: builtins.int | None = ...,
|
|
1004
|
+
size_of_memory_working_set_in_bytes: builtins.int | None = ...,
|
|
1005
|
+
profile_info: global___OpMetadata.ProfileInfo | None = ...,
|
|
1006
|
+
deduplicated_name: builtins.str | None = ...,
|
|
1007
|
+
preserve_layout: builtins.bool | None = ...,
|
|
1008
|
+
stack_frame_id: builtins.int | None = ...,
|
|
1009
|
+
scheduling_name: builtins.str | None = ...,
|
|
1010
|
+
) -> None: ...
|
|
1011
|
+
def HasField(self, field_name: typing.Literal["profile_info", b"profile_info"]) -> builtins.bool: ...
|
|
1012
|
+
def ClearField(
|
|
1013
|
+
self,
|
|
1014
|
+
field_name: typing.Literal[
|
|
1015
|
+
"deduplicated_name",
|
|
1016
|
+
b"deduplicated_name",
|
|
1017
|
+
"op_name",
|
|
1018
|
+
b"op_name",
|
|
1019
|
+
"op_type",
|
|
1020
|
+
b"op_type",
|
|
1021
|
+
"preserve_layout",
|
|
1022
|
+
b"preserve_layout",
|
|
1023
|
+
"profile_info",
|
|
1024
|
+
b"profile_info",
|
|
1025
|
+
"profile_type",
|
|
1026
|
+
b"profile_type",
|
|
1027
|
+
"scheduling_name",
|
|
1028
|
+
b"scheduling_name",
|
|
1029
|
+
"size_of_generated_code_in_bytes",
|
|
1030
|
+
b"size_of_generated_code_in_bytes",
|
|
1031
|
+
"size_of_memory_working_set_in_bytes",
|
|
1032
|
+
b"size_of_memory_working_set_in_bytes",
|
|
1033
|
+
"source_file",
|
|
1034
|
+
b"source_file",
|
|
1035
|
+
"source_line",
|
|
1036
|
+
b"source_line",
|
|
1037
|
+
"stack_frame_id",
|
|
1038
|
+
b"stack_frame_id",
|
|
1039
|
+
],
|
|
1040
|
+
) -> None: ...
|
|
1041
|
+
|
|
1042
|
+
global___OpMetadata = OpMetadata
|
|
1043
|
+
|
|
1044
|
+
@typing.final
|
|
1045
|
+
class ExecutionProfile(google.protobuf.message.Message):
|
|
1046
|
+
"""Profile data from the execution of a computation."""
|
|
1047
|
+
|
|
1048
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1049
|
+
|
|
1050
|
+
COMPILATION_CACHE_HIT_FIELD_NUMBER: builtins.int
|
|
1051
|
+
COMPILE_TIME_MS_FIELD_NUMBER: builtins.int
|
|
1052
|
+
COMPUTE_CYCLE_COUNT_FIELD_NUMBER: builtins.int
|
|
1053
|
+
COMPUTE_TIME_NS_FIELD_NUMBER: builtins.int
|
|
1054
|
+
COMPUTE_AND_TRANSFER_TIME_NS_FIELD_NUMBER: builtins.int
|
|
1055
|
+
EXECUTABLE_SIZE_IN_BYTES_FIELD_NUMBER: builtins.int
|
|
1056
|
+
PROFILE_CACHE_HIT_FIELD_NUMBER: builtins.int
|
|
1057
|
+
WARMUP_RUN_EXECUTED_FIELD_NUMBER: builtins.int
|
|
1058
|
+
compilation_cache_hit: builtins.bool
|
|
1059
|
+
"""Whether the executable was read from the compilation cache."""
|
|
1060
|
+
compile_time_ms: builtins.int
|
|
1061
|
+
"""The time in milliseconds spent to compile the computation. This only set if
|
|
1062
|
+
the executable was not read from the compilation cache
|
|
1063
|
+
(compilation_cache_hit == false).
|
|
1064
|
+
"""
|
|
1065
|
+
compute_cycle_count: builtins.int
|
|
1066
|
+
"""The number of cycles spent for the computation. This does not include the
|
|
1067
|
+
time taken for the data transfers between the host and the device. This is
|
|
1068
|
+
a target-dependent field and only used for debugging purposes.
|
|
1069
|
+
"""
|
|
1070
|
+
compute_time_ns: builtins.int
|
|
1071
|
+
"""The time in nanoseconds spent for the computation, without data transfer."""
|
|
1072
|
+
compute_and_transfer_time_ns: builtins.int
|
|
1073
|
+
"""The time in nanoseconds spent for the entire computation, including the
|
|
1074
|
+
result data transfer time. Current implementation does not spend any cycles
|
|
1075
|
+
for the input data transfer since the memory is initialized with the proper
|
|
1076
|
+
values before the execution.
|
|
1077
|
+
"""
|
|
1078
|
+
executable_size_in_bytes: builtins.int
|
|
1079
|
+
"""The size of the binary code in the executable."""
|
|
1080
|
+
profile_cache_hit: builtins.bool
|
|
1081
|
+
"""Whether this profile was drawn from a cache of profiles instead of from
|
|
1082
|
+
execution on the hardware.
|
|
1083
|
+
"""
|
|
1084
|
+
warmup_run_executed: builtins.bool
|
|
1085
|
+
"""Whether a warm-up run of the computation was executed before the
|
|
1086
|
+
measured execution.
|
|
1087
|
+
"""
|
|
1088
|
+
def __init__(
|
|
1089
|
+
self,
|
|
1090
|
+
*,
|
|
1091
|
+
compilation_cache_hit: builtins.bool | None = ...,
|
|
1092
|
+
compile_time_ms: builtins.int | None = ...,
|
|
1093
|
+
compute_cycle_count: builtins.int | None = ...,
|
|
1094
|
+
compute_time_ns: builtins.int | None = ...,
|
|
1095
|
+
compute_and_transfer_time_ns: builtins.int | None = ...,
|
|
1096
|
+
executable_size_in_bytes: builtins.int | None = ...,
|
|
1097
|
+
profile_cache_hit: builtins.bool | None = ...,
|
|
1098
|
+
warmup_run_executed: builtins.bool | None = ...,
|
|
1099
|
+
) -> None: ...
|
|
1100
|
+
def ClearField(
|
|
1101
|
+
self,
|
|
1102
|
+
field_name: typing.Literal[
|
|
1103
|
+
"compilation_cache_hit",
|
|
1104
|
+
b"compilation_cache_hit",
|
|
1105
|
+
"compile_time_ms",
|
|
1106
|
+
b"compile_time_ms",
|
|
1107
|
+
"compute_and_transfer_time_ns",
|
|
1108
|
+
b"compute_and_transfer_time_ns",
|
|
1109
|
+
"compute_cycle_count",
|
|
1110
|
+
b"compute_cycle_count",
|
|
1111
|
+
"compute_time_ns",
|
|
1112
|
+
b"compute_time_ns",
|
|
1113
|
+
"executable_size_in_bytes",
|
|
1114
|
+
b"executable_size_in_bytes",
|
|
1115
|
+
"profile_cache_hit",
|
|
1116
|
+
b"profile_cache_hit",
|
|
1117
|
+
"warmup_run_executed",
|
|
1118
|
+
b"warmup_run_executed",
|
|
1119
|
+
],
|
|
1120
|
+
) -> None: ...
|
|
1121
|
+
|
|
1122
|
+
global___ExecutionProfile = ExecutionProfile
|
|
1123
|
+
|
|
1124
|
+
@typing.final
|
|
1125
|
+
class ExecutionHandle(google.protobuf.message.Message):
|
|
1126
|
+
"""Handle given to a user that represents an execution that the user launched
|
|
1127
|
+
asynchronously on the device.
|
|
1128
|
+
"""
|
|
1129
|
+
|
|
1130
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1131
|
+
|
|
1132
|
+
HANDLE_FIELD_NUMBER: builtins.int
|
|
1133
|
+
handle: builtins.int
|
|
1134
|
+
def __init__(self, *, handle: builtins.int | None = ...) -> None: ...
|
|
1135
|
+
def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ...
|
|
1136
|
+
|
|
1137
|
+
global___ExecutionHandle = ExecutionHandle
|
|
1138
|
+
|
|
1139
|
+
@typing.final
|
|
1140
|
+
class GlobalDataHandle(google.protobuf.message.Message):
|
|
1141
|
+
"""Handle given to a user that represents a globally accessible allocation.
|
|
1142
|
+
Contrast this against a ComputationDataHandle, which is not globally
|
|
1143
|
+
accessible, since it only exists within a specific computation.
|
|
1144
|
+
"""
|
|
1145
|
+
|
|
1146
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1147
|
+
|
|
1148
|
+
HANDLE_FIELD_NUMBER: builtins.int
|
|
1149
|
+
handle: builtins.int
|
|
1150
|
+
def __init__(self, *, handle: builtins.int | None = ...) -> None: ...
|
|
1151
|
+
def ClearField(self, field_name: typing.Literal["handle", b"handle"]) -> None: ...
|
|
1152
|
+
|
|
1153
|
+
global___GlobalDataHandle = GlobalDataHandle
|
|
1154
|
+
|
|
1155
|
+
@typing.final
|
|
1156
|
+
class DeviceHandle(google.protobuf.message.Message):
|
|
1157
|
+
"""Handle given to a user that represents a replicated virtual device. Each
|
|
1158
|
+
replicated device represents N physical devices for execution where N is the
|
|
1159
|
+
number of replicas.
|
|
1160
|
+
"""
|
|
1161
|
+
|
|
1162
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1163
|
+
|
|
1164
|
+
HANDLE_FIELD_NUMBER: builtins.int
|
|
1165
|
+
DEVICE_COUNT_FIELD_NUMBER: builtins.int
|
|
1166
|
+
handle: builtins.int
|
|
1167
|
+
device_count: builtins.int
|
|
1168
|
+
"""The number of model-parallel virtual devices that communicate via XLA
|
|
1169
|
+
Send/Recv instructions.
|
|
1170
|
+
"""
|
|
1171
|
+
def __init__(self, *, handle: builtins.int | None = ..., device_count: builtins.int | None = ...) -> None: ...
|
|
1172
|
+
def ClearField(self, field_name: typing.Literal["device_count", b"device_count", "handle", b"handle"]) -> None: ...
|
|
1173
|
+
|
|
1174
|
+
global___DeviceHandle = DeviceHandle
|
|
1175
|
+
|
|
1176
|
+
@typing.final
|
|
1177
|
+
class ChannelHandle(google.protobuf.message.Message):
|
|
1178
|
+
"""Handle given to a user to represent a channel between two computations
|
|
1179
|
+
via a Send and Recv instruction pair. Channels are unbuffered, so Send
|
|
1180
|
+
Send instructions will be blocked until the data is transferred.
|
|
1181
|
+
"""
|
|
1182
|
+
|
|
1183
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1184
|
+
|
|
1185
|
+
class _ChannelType:
|
|
1186
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
1187
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
1188
|
+
|
|
1189
|
+
class _ChannelTypeEnumTypeWrapper(
|
|
1190
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ChannelHandle._ChannelType.ValueType], builtins.type
|
|
1191
|
+
):
|
|
1192
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
1193
|
+
CHANNEL_TYPE_INVALID: ChannelHandle._ChannelType.ValueType # 0
|
|
1194
|
+
"""Invalid primitive type to serve as default."""
|
|
1195
|
+
DEVICE_TO_DEVICE: ChannelHandle._ChannelType.ValueType # 1
|
|
1196
|
+
"""A channel for sending data between devices."""
|
|
1197
|
+
DEVICE_TO_HOST: ChannelHandle._ChannelType.ValueType # 2
|
|
1198
|
+
"""A channel for sending data from the device to the host. Can only be used
|
|
1199
|
+
with a Send operation.
|
|
1200
|
+
"""
|
|
1201
|
+
HOST_TO_DEVICE: ChannelHandle._ChannelType.ValueType # 3
|
|
1202
|
+
"""A channel for sending data from the host to the device. Can only be used
|
|
1203
|
+
with a Recv operation.
|
|
1204
|
+
"""
|
|
1205
|
+
|
|
1206
|
+
class ChannelType(_ChannelType, metaclass=_ChannelTypeEnumTypeWrapper): ...
|
|
1207
|
+
CHANNEL_TYPE_INVALID: ChannelHandle.ChannelType.ValueType # 0
|
|
1208
|
+
"""Invalid primitive type to serve as default."""
|
|
1209
|
+
DEVICE_TO_DEVICE: ChannelHandle.ChannelType.ValueType # 1
|
|
1210
|
+
"""A channel for sending data between devices."""
|
|
1211
|
+
DEVICE_TO_HOST: ChannelHandle.ChannelType.ValueType # 2
|
|
1212
|
+
"""A channel for sending data from the device to the host. Can only be used
|
|
1213
|
+
with a Send operation.
|
|
1214
|
+
"""
|
|
1215
|
+
HOST_TO_DEVICE: ChannelHandle.ChannelType.ValueType # 3
|
|
1216
|
+
"""A channel for sending data from the host to the device. Can only be used
|
|
1217
|
+
with a Recv operation.
|
|
1218
|
+
"""
|
|
1219
|
+
|
|
1220
|
+
HANDLE_FIELD_NUMBER: builtins.int
|
|
1221
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
1222
|
+
handle: builtins.int
|
|
1223
|
+
type: global___ChannelHandle.ChannelType.ValueType
|
|
1224
|
+
def __init__(
|
|
1225
|
+
self, *, handle: builtins.int | None = ..., type: global___ChannelHandle.ChannelType.ValueType | None = ...
|
|
1226
|
+
) -> None: ...
|
|
1227
|
+
def ClearField(self, field_name: typing.Literal["handle", b"handle", "type", b"type"]) -> None: ...
|
|
1228
|
+
|
|
1229
|
+
global___ChannelHandle = ChannelHandle
|
|
1230
|
+
|
|
1231
|
+
@typing.final
|
|
1232
|
+
class DeviceAssignmentProto(google.protobuf.message.Message):
|
|
1233
|
+
"""DeviceAssignmentProto is a serialized form of DeviceAssignment class, which
|
|
1234
|
+
represents the device ids assigned to a set of replicated computations.
|
|
1235
|
+
See xla::DeviceAssignment class comment for more details.
|
|
1236
|
+
"""
|
|
1237
|
+
|
|
1238
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1239
|
+
|
|
1240
|
+
@typing.final
|
|
1241
|
+
class ComputationDevice(google.protobuf.message.Message):
|
|
1242
|
+
"""Each logical computation runs on replica_count physical devices.
|
|
1243
|
+
ComputationDevice represents the device ids assinged to the replicas.
|
|
1244
|
+
"""
|
|
1245
|
+
|
|
1246
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1247
|
+
|
|
1248
|
+
REPLICA_DEVICE_IDS_FIELD_NUMBER: builtins.int
|
|
1249
|
+
@property
|
|
1250
|
+
def replica_device_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1251
|
+
def __init__(self, *, replica_device_ids: collections.abc.Iterable[builtins.int] | None = ...) -> None: ...
|
|
1252
|
+
def ClearField(self, field_name: typing.Literal["replica_device_ids", b"replica_device_ids"]) -> None: ...
|
|
1253
|
+
|
|
1254
|
+
REPLICA_COUNT_FIELD_NUMBER: builtins.int
|
|
1255
|
+
COMPUTATION_COUNT_FIELD_NUMBER: builtins.int
|
|
1256
|
+
COMPUTATION_DEVICES_FIELD_NUMBER: builtins.int
|
|
1257
|
+
replica_count: builtins.int
|
|
1258
|
+
computation_count: builtins.int
|
|
1259
|
+
@property
|
|
1260
|
+
def computation_devices(
|
|
1261
|
+
self,
|
|
1262
|
+
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
|
|
1263
|
+
global___DeviceAssignmentProto.ComputationDevice
|
|
1264
|
+
]: ...
|
|
1265
|
+
def __init__(
|
|
1266
|
+
self,
|
|
1267
|
+
*,
|
|
1268
|
+
replica_count: builtins.int | None = ...,
|
|
1269
|
+
computation_count: builtins.int | None = ...,
|
|
1270
|
+
computation_devices: collections.abc.Iterable[global___DeviceAssignmentProto.ComputationDevice] | None = ...,
|
|
1271
|
+
) -> None: ...
|
|
1272
|
+
def ClearField(
|
|
1273
|
+
self,
|
|
1274
|
+
field_name: typing.Literal[
|
|
1275
|
+
"computation_count",
|
|
1276
|
+
b"computation_count",
|
|
1277
|
+
"computation_devices",
|
|
1278
|
+
b"computation_devices",
|
|
1279
|
+
"replica_count",
|
|
1280
|
+
b"replica_count",
|
|
1281
|
+
],
|
|
1282
|
+
) -> None: ...
|
|
1283
|
+
|
|
1284
|
+
global___DeviceAssignmentProto = DeviceAssignmentProto
|
|
1285
|
+
|
|
1286
|
+
@typing.final
|
|
1287
|
+
class LiteralProto(google.protobuf.message.Message):
|
|
1288
|
+
"""Literals are used when the server and client need to exchange materialized
|
|
1289
|
+
data / results. Literals are also used to describe constants used in
|
|
1290
|
+
computations.
|
|
1291
|
+
|
|
1292
|
+
Transfers to/from the client are encoded in literal form, and the structure
|
|
1293
|
+
of the repeated fields is implied by the shape.
|
|
1294
|
+
"""
|
|
1295
|
+
|
|
1296
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1297
|
+
|
|
1298
|
+
SHAPE_FIELD_NUMBER: builtins.int
|
|
1299
|
+
PREDS_FIELD_NUMBER: builtins.int
|
|
1300
|
+
S2S_FIELD_NUMBER: builtins.int
|
|
1301
|
+
S4S_FIELD_NUMBER: builtins.int
|
|
1302
|
+
S8S_FIELD_NUMBER: builtins.int
|
|
1303
|
+
U2S_FIELD_NUMBER: builtins.int
|
|
1304
|
+
U4S_FIELD_NUMBER: builtins.int
|
|
1305
|
+
U8S_FIELD_NUMBER: builtins.int
|
|
1306
|
+
S32S_FIELD_NUMBER: builtins.int
|
|
1307
|
+
S64S_FIELD_NUMBER: builtins.int
|
|
1308
|
+
U32S_FIELD_NUMBER: builtins.int
|
|
1309
|
+
U64S_FIELD_NUMBER: builtins.int
|
|
1310
|
+
F32S_FIELD_NUMBER: builtins.int
|
|
1311
|
+
F64S_FIELD_NUMBER: builtins.int
|
|
1312
|
+
C64S_FIELD_NUMBER: builtins.int
|
|
1313
|
+
C128S_FIELD_NUMBER: builtins.int
|
|
1314
|
+
TUPLE_LITERALS_FIELD_NUMBER: builtins.int
|
|
1315
|
+
F16S_FIELD_NUMBER: builtins.int
|
|
1316
|
+
BF16S_FIELD_NUMBER: builtins.int
|
|
1317
|
+
U16S_FIELD_NUMBER: builtins.int
|
|
1318
|
+
S16S_FIELD_NUMBER: builtins.int
|
|
1319
|
+
F8E5M2S_FIELD_NUMBER: builtins.int
|
|
1320
|
+
F8E4M3FNS_FIELD_NUMBER: builtins.int
|
|
1321
|
+
F8E4M3B11FNUZS_FIELD_NUMBER: builtins.int
|
|
1322
|
+
F8E5M2FNUZS_FIELD_NUMBER: builtins.int
|
|
1323
|
+
F8E4M3FNUZS_FIELD_NUMBER: builtins.int
|
|
1324
|
+
SPARSE_INDICES_FIELD_NUMBER: builtins.int
|
|
1325
|
+
s2s: builtins.bytes
|
|
1326
|
+
s4s: builtins.bytes
|
|
1327
|
+
s8s: builtins.bytes
|
|
1328
|
+
u2s: builtins.bytes
|
|
1329
|
+
u4s: builtins.bytes
|
|
1330
|
+
u8s: builtins.bytes
|
|
1331
|
+
f16s: builtins.bytes
|
|
1332
|
+
"""The F16s, BF16s, U16s and S16s are encoded in little endian byte order"""
|
|
1333
|
+
bf16s: builtins.bytes
|
|
1334
|
+
u16s: builtins.bytes
|
|
1335
|
+
s16s: builtins.bytes
|
|
1336
|
+
f8e5m2s: builtins.bytes
|
|
1337
|
+
f8e4m3fns: builtins.bytes
|
|
1338
|
+
f8e4m3b11fnuzs: builtins.bytes
|
|
1339
|
+
f8e5m2fnuzs: builtins.bytes
|
|
1340
|
+
f8e4m3fnuzs: builtins.bytes
|
|
1341
|
+
@property
|
|
1342
|
+
def shape(self) -> global___ShapeProto: ...
|
|
1343
|
+
@property
|
|
1344
|
+
def preds(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]: ...
|
|
1345
|
+
@property
|
|
1346
|
+
def s32s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1347
|
+
@property
|
|
1348
|
+
def s64s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1349
|
+
@property
|
|
1350
|
+
def u32s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1351
|
+
@property
|
|
1352
|
+
def u64s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1353
|
+
@property
|
|
1354
|
+
def f32s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
|
|
1355
|
+
@property
|
|
1356
|
+
def f64s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
|
|
1357
|
+
@property
|
|
1358
|
+
def c64s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
|
|
1359
|
+
"""Stored as interleaved real, imag floats."""
|
|
1360
|
+
|
|
1361
|
+
@property
|
|
1362
|
+
def c128s(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]:
|
|
1363
|
+
"""Stored as interleaved real, imag doubles."""
|
|
1364
|
+
|
|
1365
|
+
@property
|
|
1366
|
+
def tuple_literals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LiteralProto]: ...
|
|
1367
|
+
@property
|
|
1368
|
+
def sparse_indices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1369
|
+
"""Next = 28"""
|
|
1370
|
+
|
|
1371
|
+
def __init__(
|
|
1372
|
+
self,
|
|
1373
|
+
*,
|
|
1374
|
+
shape: global___ShapeProto | None = ...,
|
|
1375
|
+
preds: collections.abc.Iterable[builtins.bool] | None = ...,
|
|
1376
|
+
s2s: builtins.bytes | None = ...,
|
|
1377
|
+
s4s: builtins.bytes | None = ...,
|
|
1378
|
+
s8s: builtins.bytes | None = ...,
|
|
1379
|
+
u2s: builtins.bytes | None = ...,
|
|
1380
|
+
u4s: builtins.bytes | None = ...,
|
|
1381
|
+
u8s: builtins.bytes | None = ...,
|
|
1382
|
+
s32s: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1383
|
+
s64s: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1384
|
+
u32s: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1385
|
+
u64s: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1386
|
+
f32s: collections.abc.Iterable[builtins.float] | None = ...,
|
|
1387
|
+
f64s: collections.abc.Iterable[builtins.float] | None = ...,
|
|
1388
|
+
c64s: collections.abc.Iterable[builtins.float] | None = ...,
|
|
1389
|
+
c128s: collections.abc.Iterable[builtins.float] | None = ...,
|
|
1390
|
+
tuple_literals: collections.abc.Iterable[global___LiteralProto] | None = ...,
|
|
1391
|
+
f16s: builtins.bytes | None = ...,
|
|
1392
|
+
bf16s: builtins.bytes | None = ...,
|
|
1393
|
+
u16s: builtins.bytes | None = ...,
|
|
1394
|
+
s16s: builtins.bytes | None = ...,
|
|
1395
|
+
f8e5m2s: builtins.bytes | None = ...,
|
|
1396
|
+
f8e4m3fns: builtins.bytes | None = ...,
|
|
1397
|
+
f8e4m3b11fnuzs: builtins.bytes | None = ...,
|
|
1398
|
+
f8e5m2fnuzs: builtins.bytes | None = ...,
|
|
1399
|
+
f8e4m3fnuzs: builtins.bytes | None = ...,
|
|
1400
|
+
sparse_indices: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1401
|
+
) -> None: ...
|
|
1402
|
+
def HasField(self, field_name: typing.Literal["shape", b"shape"]) -> builtins.bool: ...
|
|
1403
|
+
def ClearField(
|
|
1404
|
+
self,
|
|
1405
|
+
field_name: typing.Literal[
|
|
1406
|
+
"bf16s",
|
|
1407
|
+
b"bf16s",
|
|
1408
|
+
"c128s",
|
|
1409
|
+
b"c128s",
|
|
1410
|
+
"c64s",
|
|
1411
|
+
b"c64s",
|
|
1412
|
+
"f16s",
|
|
1413
|
+
b"f16s",
|
|
1414
|
+
"f32s",
|
|
1415
|
+
b"f32s",
|
|
1416
|
+
"f64s",
|
|
1417
|
+
b"f64s",
|
|
1418
|
+
"f8e4m3b11fnuzs",
|
|
1419
|
+
b"f8e4m3b11fnuzs",
|
|
1420
|
+
"f8e4m3fns",
|
|
1421
|
+
b"f8e4m3fns",
|
|
1422
|
+
"f8e4m3fnuzs",
|
|
1423
|
+
b"f8e4m3fnuzs",
|
|
1424
|
+
"f8e5m2fnuzs",
|
|
1425
|
+
b"f8e5m2fnuzs",
|
|
1426
|
+
"f8e5m2s",
|
|
1427
|
+
b"f8e5m2s",
|
|
1428
|
+
"preds",
|
|
1429
|
+
b"preds",
|
|
1430
|
+
"s16s",
|
|
1431
|
+
b"s16s",
|
|
1432
|
+
"s2s",
|
|
1433
|
+
b"s2s",
|
|
1434
|
+
"s32s",
|
|
1435
|
+
b"s32s",
|
|
1436
|
+
"s4s",
|
|
1437
|
+
b"s4s",
|
|
1438
|
+
"s64s",
|
|
1439
|
+
b"s64s",
|
|
1440
|
+
"s8s",
|
|
1441
|
+
b"s8s",
|
|
1442
|
+
"shape",
|
|
1443
|
+
b"shape",
|
|
1444
|
+
"sparse_indices",
|
|
1445
|
+
b"sparse_indices",
|
|
1446
|
+
"tuple_literals",
|
|
1447
|
+
b"tuple_literals",
|
|
1448
|
+
"u16s",
|
|
1449
|
+
b"u16s",
|
|
1450
|
+
"u2s",
|
|
1451
|
+
b"u2s",
|
|
1452
|
+
"u32s",
|
|
1453
|
+
b"u32s",
|
|
1454
|
+
"u4s",
|
|
1455
|
+
b"u4s",
|
|
1456
|
+
"u64s",
|
|
1457
|
+
b"u64s",
|
|
1458
|
+
"u8s",
|
|
1459
|
+
b"u8s",
|
|
1460
|
+
],
|
|
1461
|
+
) -> None: ...
|
|
1462
|
+
|
|
1463
|
+
global___LiteralProto = LiteralProto
|
|
1464
|
+
|
|
1465
|
+
@typing.final
|
|
1466
|
+
class WindowDimension(google.protobuf.message.Message):
|
|
1467
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1468
|
+
|
|
1469
|
+
SIZE_FIELD_NUMBER: builtins.int
|
|
1470
|
+
STRIDE_FIELD_NUMBER: builtins.int
|
|
1471
|
+
PADDING_LOW_FIELD_NUMBER: builtins.int
|
|
1472
|
+
PADDING_HIGH_FIELD_NUMBER: builtins.int
|
|
1473
|
+
WINDOW_DILATION_FIELD_NUMBER: builtins.int
|
|
1474
|
+
BASE_DILATION_FIELD_NUMBER: builtins.int
|
|
1475
|
+
WINDOW_REVERSAL_FIELD_NUMBER: builtins.int
|
|
1476
|
+
size: builtins.int
|
|
1477
|
+
"""The size of the window in this dimension. For a rectangle, this would be
|
|
1478
|
+
the width or height.
|
|
1479
|
+
"""
|
|
1480
|
+
stride: builtins.int
|
|
1481
|
+
"""The stride at which the window moves across the base area in this
|
|
1482
|
+
dimension. In other words, this is the spacing between different
|
|
1483
|
+
positions of the window in this dimension.
|
|
1484
|
+
"""
|
|
1485
|
+
padding_low: builtins.int
|
|
1486
|
+
"""If positive, means the amount of padding to add to the base area at the low
|
|
1487
|
+
end of this dimension; if negative, its negative means the number of
|
|
1488
|
+
elements removed from the low end of this dimension. For example, in the
|
|
1489
|
+
horizontal dimension of a rectangle, this would be the number of padding
|
|
1490
|
+
values to pad on the left, given that indices increase when going right.
|
|
1491
|
+
The actual padding value depends upon the context. Convolution pads with
|
|
1492
|
+
zeros. ReduceWindow and SelectAndScatter pads with the reduce function's
|
|
1493
|
+
init value.
|
|
1494
|
+
"""
|
|
1495
|
+
padding_high: builtins.int
|
|
1496
|
+
"""As padding_low, but on the high end of this dimension. For example, in the
|
|
1497
|
+
horizontal dimension of a rectangle, this would be the number of values to
|
|
1498
|
+
pad on the right, given that indices increase when going right.
|
|
1499
|
+
"""
|
|
1500
|
+
window_dilation: builtins.int
|
|
1501
|
+
"""Dilation factor of the sliding window in this dimension. A dilation factor
|
|
1502
|
+
of 1 means no dilation. window_dilation - 1 no-op entries ("holes") are
|
|
1503
|
+
implicitly placed between each kernel element. This value may not be less
|
|
1504
|
+
than 1. See documentation for convolution.
|
|
1505
|
+
"""
|
|
1506
|
+
base_dilation: builtins.int
|
|
1507
|
+
"""Dilation factor of the base area in this dimension. A dilation factor of 1
|
|
1508
|
+
means no dilation. base_dilation - 1 no-op entries ("holes") are implicitly
|
|
1509
|
+
placed between each base area element. This value may not be less than 1.
|
|
1510
|
+
See documentation for convolution.
|
|
1511
|
+
"""
|
|
1512
|
+
window_reversal: builtins.bool
|
|
1513
|
+
"""Window reversal means that this dimension was logically reversed before the
|
|
1514
|
+
operation.
|
|
1515
|
+
"""
|
|
1516
|
+
def __init__(
|
|
1517
|
+
self,
|
|
1518
|
+
*,
|
|
1519
|
+
size: builtins.int | None = ...,
|
|
1520
|
+
stride: builtins.int | None = ...,
|
|
1521
|
+
padding_low: builtins.int | None = ...,
|
|
1522
|
+
padding_high: builtins.int | None = ...,
|
|
1523
|
+
window_dilation: builtins.int | None = ...,
|
|
1524
|
+
base_dilation: builtins.int | None = ...,
|
|
1525
|
+
window_reversal: builtins.bool | None = ...,
|
|
1526
|
+
) -> None: ...
|
|
1527
|
+
def ClearField(
|
|
1528
|
+
self,
|
|
1529
|
+
field_name: typing.Literal[
|
|
1530
|
+
"base_dilation",
|
|
1531
|
+
b"base_dilation",
|
|
1532
|
+
"padding_high",
|
|
1533
|
+
b"padding_high",
|
|
1534
|
+
"padding_low",
|
|
1535
|
+
b"padding_low",
|
|
1536
|
+
"size",
|
|
1537
|
+
b"size",
|
|
1538
|
+
"stride",
|
|
1539
|
+
b"stride",
|
|
1540
|
+
"window_dilation",
|
|
1541
|
+
b"window_dilation",
|
|
1542
|
+
"window_reversal",
|
|
1543
|
+
b"window_reversal",
|
|
1544
|
+
],
|
|
1545
|
+
) -> None: ...
|
|
1546
|
+
|
|
1547
|
+
global___WindowDimension = WindowDimension
|
|
1548
|
+
|
|
1549
|
+
@typing.final
|
|
1550
|
+
class Window(google.protobuf.message.Message):
|
|
1551
|
+
"""Describes the windowing in an operation such as convolution.
|
|
1552
|
+
|
|
1553
|
+
The window is moved across a base area and for each position of the
|
|
1554
|
+
window a computation is performed. The field below describes the
|
|
1555
|
+
window and the movement of the window across a base area.
|
|
1556
|
+
"""
|
|
1557
|
+
|
|
1558
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1559
|
+
|
|
1560
|
+
DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1561
|
+
@property
|
|
1562
|
+
def dimensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WindowDimension]: ...
|
|
1563
|
+
def __init__(self, *, dimensions: collections.abc.Iterable[global___WindowDimension] | None = ...) -> None: ...
|
|
1564
|
+
def ClearField(self, field_name: typing.Literal["dimensions", b"dimensions"]) -> None: ...
|
|
1565
|
+
|
|
1566
|
+
global___Window = Window
|
|
1567
|
+
|
|
1568
|
+
@typing.final
|
|
1569
|
+
class GatherDimensionNumbers(google.protobuf.message.Message):
|
|
1570
|
+
"""Describes the dimension numbers for a gather operation.
|
|
1571
|
+
|
|
1572
|
+
See https://www.tensorflow.org/performance/xla/operation_semantics#gather for
|
|
1573
|
+
more details.
|
|
1574
|
+
"""
|
|
1575
|
+
|
|
1576
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1577
|
+
|
|
1578
|
+
OFFSET_DIMS_FIELD_NUMBER: builtins.int
|
|
1579
|
+
COLLAPSED_SLICE_DIMS_FIELD_NUMBER: builtins.int
|
|
1580
|
+
START_INDEX_MAP_FIELD_NUMBER: builtins.int
|
|
1581
|
+
INDEX_VECTOR_DIM_FIELD_NUMBER: builtins.int
|
|
1582
|
+
OPERAND_BATCHING_DIMS_FIELD_NUMBER: builtins.int
|
|
1583
|
+
START_INDICES_BATCHING_DIMS_FIELD_NUMBER: builtins.int
|
|
1584
|
+
index_vector_dim: builtins.int
|
|
1585
|
+
"""The dimension in the start_indices input that contains the starting
|
|
1586
|
+
indices.
|
|
1587
|
+
"""
|
|
1588
|
+
@property
|
|
1589
|
+
def offset_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1590
|
+
""" "Window indices" is a term for a set of indices that index into the
|
|
1591
|
+
interior of a dynamic-slice from the input tensor, the starting indices for
|
|
1592
|
+
which were computed from output_gather_dims (see the operation semantic for
|
|
1593
|
+
how this is defined) and the start_indices tensor.
|
|
1594
|
+
|
|
1595
|
+
The window indices for a specific output index Out is computed as:
|
|
1596
|
+
|
|
1597
|
+
i = 0
|
|
1598
|
+
for (k : [0, input_tensor_shape.rank))
|
|
1599
|
+
window_indices[k] =
|
|
1600
|
+
if k in collapsed_slice_dims
|
|
1601
|
+
then 0
|
|
1602
|
+
else Out[offset_dims[i++]]
|
|
1603
|
+
"""
|
|
1604
|
+
|
|
1605
|
+
@property
|
|
1606
|
+
def collapsed_slice_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1607
|
+
@property
|
|
1608
|
+
def start_index_map(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1609
|
+
"""This is interpreted as a map from i to start_index_map[i]. It
|
|
1610
|
+
transforms the gather index looked up from the start_indices tensor into
|
|
1611
|
+
the starting index in the input space.
|
|
1612
|
+
"""
|
|
1613
|
+
|
|
1614
|
+
@property
|
|
1615
|
+
def operand_batching_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1616
|
+
"""This is the batch dimensions in the operand."""
|
|
1617
|
+
|
|
1618
|
+
@property
|
|
1619
|
+
def start_indices_batching_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1620
|
+
"""This is the batch dimensions in the index, and it should be the same size
|
|
1621
|
+
as operand_batching_dims.
|
|
1622
|
+
"""
|
|
1623
|
+
|
|
1624
|
+
def __init__(
|
|
1625
|
+
self,
|
|
1626
|
+
*,
|
|
1627
|
+
offset_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1628
|
+
collapsed_slice_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1629
|
+
start_index_map: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1630
|
+
index_vector_dim: builtins.int | None = ...,
|
|
1631
|
+
operand_batching_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1632
|
+
start_indices_batching_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1633
|
+
) -> None: ...
|
|
1634
|
+
def ClearField(
|
|
1635
|
+
self,
|
|
1636
|
+
field_name: typing.Literal[
|
|
1637
|
+
"collapsed_slice_dims",
|
|
1638
|
+
b"collapsed_slice_dims",
|
|
1639
|
+
"index_vector_dim",
|
|
1640
|
+
b"index_vector_dim",
|
|
1641
|
+
"offset_dims",
|
|
1642
|
+
b"offset_dims",
|
|
1643
|
+
"operand_batching_dims",
|
|
1644
|
+
b"operand_batching_dims",
|
|
1645
|
+
"start_index_map",
|
|
1646
|
+
b"start_index_map",
|
|
1647
|
+
"start_indices_batching_dims",
|
|
1648
|
+
b"start_indices_batching_dims",
|
|
1649
|
+
],
|
|
1650
|
+
) -> None: ...
|
|
1651
|
+
|
|
1652
|
+
global___GatherDimensionNumbers = GatherDimensionNumbers
|
|
1653
|
+
|
|
1654
|
+
@typing.final
|
|
1655
|
+
class ScatterDimensionNumbers(google.protobuf.message.Message):
|
|
1656
|
+
"""Describes the dimension numbers for a scatter operation.
|
|
1657
|
+
|
|
1658
|
+
All the fields are similar to the corresponding fields in
|
|
1659
|
+
GatherDimensionNumbers. Differences are noted below.
|
|
1660
|
+
"""
|
|
1661
|
+
|
|
1662
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1663
|
+
|
|
1664
|
+
UPDATE_WINDOW_DIMS_FIELD_NUMBER: builtins.int
|
|
1665
|
+
INSERTED_WINDOW_DIMS_FIELD_NUMBER: builtins.int
|
|
1666
|
+
SCATTER_DIMS_TO_OPERAND_DIMS_FIELD_NUMBER: builtins.int
|
|
1667
|
+
INDEX_VECTOR_DIM_FIELD_NUMBER: builtins.int
|
|
1668
|
+
INPUT_BATCHING_DIMS_FIELD_NUMBER: builtins.int
|
|
1669
|
+
SCATTER_INDICES_BATCHING_DIMS_FIELD_NUMBER: builtins.int
|
|
1670
|
+
index_vector_dim: builtins.int
|
|
1671
|
+
@property
|
|
1672
|
+
def update_window_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1673
|
+
"""The set of dimensions in the updates shape that are window dimensions."""
|
|
1674
|
+
|
|
1675
|
+
@property
|
|
1676
|
+
def inserted_window_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1677
|
+
"""The set of window dimensions that must be inserted into the updates shape."""
|
|
1678
|
+
|
|
1679
|
+
@property
|
|
1680
|
+
def scatter_dims_to_operand_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
1681
|
+
@property
|
|
1682
|
+
def input_batching_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1683
|
+
"""This is the batch dimension in the input."""
|
|
1684
|
+
|
|
1685
|
+
@property
|
|
1686
|
+
def scatter_indices_batching_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1687
|
+
"""This is the batch dimension in the index."""
|
|
1688
|
+
|
|
1689
|
+
def __init__(
|
|
1690
|
+
self,
|
|
1691
|
+
*,
|
|
1692
|
+
update_window_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1693
|
+
inserted_window_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1694
|
+
scatter_dims_to_operand_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1695
|
+
index_vector_dim: builtins.int | None = ...,
|
|
1696
|
+
input_batching_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1697
|
+
scatter_indices_batching_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1698
|
+
) -> None: ...
|
|
1699
|
+
def ClearField(
|
|
1700
|
+
self,
|
|
1701
|
+
field_name: typing.Literal[
|
|
1702
|
+
"index_vector_dim",
|
|
1703
|
+
b"index_vector_dim",
|
|
1704
|
+
"input_batching_dims",
|
|
1705
|
+
b"input_batching_dims",
|
|
1706
|
+
"inserted_window_dims",
|
|
1707
|
+
b"inserted_window_dims",
|
|
1708
|
+
"scatter_dims_to_operand_dims",
|
|
1709
|
+
b"scatter_dims_to_operand_dims",
|
|
1710
|
+
"scatter_indices_batching_dims",
|
|
1711
|
+
b"scatter_indices_batching_dims",
|
|
1712
|
+
"update_window_dims",
|
|
1713
|
+
b"update_window_dims",
|
|
1714
|
+
],
|
|
1715
|
+
) -> None: ...
|
|
1716
|
+
|
|
1717
|
+
global___ScatterDimensionNumbers = ScatterDimensionNumbers
|
|
1718
|
+
|
|
1719
|
+
@typing.final
|
|
1720
|
+
class ConvolutionDimensionNumbers(google.protobuf.message.Message):
|
|
1721
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1722
|
+
|
|
1723
|
+
INPUT_BATCH_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1724
|
+
INPUT_FEATURE_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1725
|
+
INPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1726
|
+
KERNEL_INPUT_FEATURE_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1727
|
+
KERNEL_OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1728
|
+
KERNEL_SPATIAL_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1729
|
+
OUTPUT_BATCH_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1730
|
+
OUTPUT_FEATURE_DIMENSION_FIELD_NUMBER: builtins.int
|
|
1731
|
+
OUTPUT_SPATIAL_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1732
|
+
input_batch_dimension: builtins.int
|
|
1733
|
+
"""The number of the dimension that represents batch in the input."""
|
|
1734
|
+
input_feature_dimension: builtins.int
|
|
1735
|
+
"""The number of the dimension that represents features in the input."""
|
|
1736
|
+
kernel_input_feature_dimension: builtins.int
|
|
1737
|
+
"""The number of the dimension that represents input features in the
|
|
1738
|
+
convolutional kernel (rhs).
|
|
1739
|
+
"""
|
|
1740
|
+
kernel_output_feature_dimension: builtins.int
|
|
1741
|
+
"""The number of the dimension that represents output features in
|
|
1742
|
+
the convolutional kernel (rhs).
|
|
1743
|
+
"""
|
|
1744
|
+
output_batch_dimension: builtins.int
|
|
1745
|
+
"""The number of the dimension that represents batch in the output."""
|
|
1746
|
+
output_feature_dimension: builtins.int
|
|
1747
|
+
"""The number of the dimension that represents features in the output."""
|
|
1748
|
+
@property
|
|
1749
|
+
def input_spatial_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1750
|
+
"""The dimension numbers for the spatial dimensions that the window
|
|
1751
|
+
moves through in the input.
|
|
1752
|
+
"""
|
|
1753
|
+
|
|
1754
|
+
@property
|
|
1755
|
+
def kernel_spatial_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1756
|
+
"""The dimension numbers for the spatial dimensions that the window
|
|
1757
|
+
moves through in the kernel (rhs). window.strides(0) is the
|
|
1758
|
+
stride in the kernel_spatial_dimensions(0) dimension.
|
|
1759
|
+
"""
|
|
1760
|
+
|
|
1761
|
+
@property
|
|
1762
|
+
def output_spatial_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1763
|
+
"""The dimension numbers for the spatial dimensions that the window
|
|
1764
|
+
moves through in the output.
|
|
1765
|
+
"""
|
|
1766
|
+
|
|
1767
|
+
def __init__(
|
|
1768
|
+
self,
|
|
1769
|
+
*,
|
|
1770
|
+
input_batch_dimension: builtins.int | None = ...,
|
|
1771
|
+
input_feature_dimension: builtins.int | None = ...,
|
|
1772
|
+
input_spatial_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1773
|
+
kernel_input_feature_dimension: builtins.int | None = ...,
|
|
1774
|
+
kernel_output_feature_dimension: builtins.int | None = ...,
|
|
1775
|
+
kernel_spatial_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1776
|
+
output_batch_dimension: builtins.int | None = ...,
|
|
1777
|
+
output_feature_dimension: builtins.int | None = ...,
|
|
1778
|
+
output_spatial_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1779
|
+
) -> None: ...
|
|
1780
|
+
def ClearField(
|
|
1781
|
+
self,
|
|
1782
|
+
field_name: typing.Literal[
|
|
1783
|
+
"input_batch_dimension",
|
|
1784
|
+
b"input_batch_dimension",
|
|
1785
|
+
"input_feature_dimension",
|
|
1786
|
+
b"input_feature_dimension",
|
|
1787
|
+
"input_spatial_dimensions",
|
|
1788
|
+
b"input_spatial_dimensions",
|
|
1789
|
+
"kernel_input_feature_dimension",
|
|
1790
|
+
b"kernel_input_feature_dimension",
|
|
1791
|
+
"kernel_output_feature_dimension",
|
|
1792
|
+
b"kernel_output_feature_dimension",
|
|
1793
|
+
"kernel_spatial_dimensions",
|
|
1794
|
+
b"kernel_spatial_dimensions",
|
|
1795
|
+
"output_batch_dimension",
|
|
1796
|
+
b"output_batch_dimension",
|
|
1797
|
+
"output_feature_dimension",
|
|
1798
|
+
b"output_feature_dimension",
|
|
1799
|
+
"output_spatial_dimensions",
|
|
1800
|
+
b"output_spatial_dimensions",
|
|
1801
|
+
],
|
|
1802
|
+
) -> None: ...
|
|
1803
|
+
|
|
1804
|
+
global___ConvolutionDimensionNumbers = ConvolutionDimensionNumbers
|
|
1805
|
+
|
|
1806
|
+
@typing.final
|
|
1807
|
+
class DotDimensionNumbers(google.protobuf.message.Message):
|
|
1808
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1809
|
+
|
|
1810
|
+
LHS_CONTRACTING_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1811
|
+
RHS_CONTRACTING_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1812
|
+
LHS_BATCH_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1813
|
+
RHS_BATCH_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
1814
|
+
@property
|
|
1815
|
+
def lhs_contracting_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1816
|
+
"""The dimension numbers that represent the 'lhs' contracting dimensions."""
|
|
1817
|
+
|
|
1818
|
+
@property
|
|
1819
|
+
def rhs_contracting_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1820
|
+
"""The dimension numbers that represent the 'rhs' contracting dimensions."""
|
|
1821
|
+
|
|
1822
|
+
@property
|
|
1823
|
+
def lhs_batch_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1824
|
+
"""The dimension numbers that represent the 'lhs' batch dimensions."""
|
|
1825
|
+
|
|
1826
|
+
@property
|
|
1827
|
+
def rhs_batch_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
1828
|
+
"""The dimension numbers that represent the 'rhs' batch dimensions."""
|
|
1829
|
+
|
|
1830
|
+
def __init__(
|
|
1831
|
+
self,
|
|
1832
|
+
*,
|
|
1833
|
+
lhs_contracting_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1834
|
+
rhs_contracting_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1835
|
+
lhs_batch_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1836
|
+
rhs_batch_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
1837
|
+
) -> None: ...
|
|
1838
|
+
def ClearField(
|
|
1839
|
+
self,
|
|
1840
|
+
field_name: typing.Literal[
|
|
1841
|
+
"lhs_batch_dimensions",
|
|
1842
|
+
b"lhs_batch_dimensions",
|
|
1843
|
+
"lhs_contracting_dimensions",
|
|
1844
|
+
b"lhs_contracting_dimensions",
|
|
1845
|
+
"rhs_batch_dimensions",
|
|
1846
|
+
b"rhs_batch_dimensions",
|
|
1847
|
+
"rhs_contracting_dimensions",
|
|
1848
|
+
b"rhs_contracting_dimensions",
|
|
1849
|
+
],
|
|
1850
|
+
) -> None: ...
|
|
1851
|
+
|
|
1852
|
+
global___DotDimensionNumbers = DotDimensionNumbers
|
|
1853
|
+
|
|
1854
|
+
@typing.final
|
|
1855
|
+
class SparsityDescriptor(google.protobuf.message.Message):
|
|
1856
|
+
"""Contains sparsity metadata for a sparse dot operation.
|
|
1857
|
+
The only supported type atm is structured 2:4 sparsity, which is natively
|
|
1858
|
+
supported on NVidia GPUs.
|
|
1859
|
+
Restrictions:
|
|
1860
|
+
- only one operand of the dot operation may be sparse;
|
|
1861
|
+
- only the contracting dimension may be sparse.
|
|
1862
|
+
"""
|
|
1863
|
+
|
|
1864
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1865
|
+
|
|
1866
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
1867
|
+
INDEX_FIELD_NUMBER: builtins.int
|
|
1868
|
+
DIMENSION_FIELD_NUMBER: builtins.int
|
|
1869
|
+
N_FIELD_NUMBER: builtins.int
|
|
1870
|
+
M_FIELD_NUMBER: builtins.int
|
|
1871
|
+
type: global___SparsityType.ValueType
|
|
1872
|
+
index: builtins.int
|
|
1873
|
+
"""Sparse operand index (0 or 1)."""
|
|
1874
|
+
dimension: builtins.int
|
|
1875
|
+
"""Sparse dimension number."""
|
|
1876
|
+
n: builtins.int
|
|
1877
|
+
"""Structured N:M sparsity (N < M)."""
|
|
1878
|
+
m: builtins.int
|
|
1879
|
+
def __init__(
|
|
1880
|
+
self,
|
|
1881
|
+
*,
|
|
1882
|
+
type: global___SparsityType.ValueType | None = ...,
|
|
1883
|
+
index: builtins.int | None = ...,
|
|
1884
|
+
dimension: builtins.int | None = ...,
|
|
1885
|
+
n: builtins.int | None = ...,
|
|
1886
|
+
m: builtins.int | None = ...,
|
|
1887
|
+
) -> None: ...
|
|
1888
|
+
def ClearField(
|
|
1889
|
+
self, field_name: typing.Literal["dimension", b"dimension", "index", b"index", "m", b"m", "n", b"n", "type", b"type"]
|
|
1890
|
+
) -> None: ...
|
|
1891
|
+
|
|
1892
|
+
global___SparsityDescriptor = SparsityDescriptor
|
|
1893
|
+
|
|
1894
|
+
@typing.final
|
|
1895
|
+
class TriangularSolveOptions(google.protobuf.message.Message):
|
|
1896
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1897
|
+
|
|
1898
|
+
class _Transpose:
|
|
1899
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
1900
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
1901
|
+
|
|
1902
|
+
class _TransposeEnumTypeWrapper(
|
|
1903
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TriangularSolveOptions._Transpose.ValueType], builtins.type
|
|
1904
|
+
):
|
|
1905
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
1906
|
+
TRANSPOSE_INVALID: TriangularSolveOptions._Transpose.ValueType # 0
|
|
1907
|
+
NO_TRANSPOSE: TriangularSolveOptions._Transpose.ValueType # 1
|
|
1908
|
+
"""Don't transpose 'a'."""
|
|
1909
|
+
TRANSPOSE: TriangularSolveOptions._Transpose.ValueType # 2
|
|
1910
|
+
"""Transpose 'a'."""
|
|
1911
|
+
ADJOINT: TriangularSolveOptions._Transpose.ValueType # 3
|
|
1912
|
+
"""Complex conjugate and transpose 'a'."""
|
|
1913
|
+
|
|
1914
|
+
class Transpose(_Transpose, metaclass=_TransposeEnumTypeWrapper):
|
|
1915
|
+
"""Should we transpose or use the adjoint of 'a'?"""
|
|
1916
|
+
|
|
1917
|
+
TRANSPOSE_INVALID: TriangularSolveOptions.Transpose.ValueType # 0
|
|
1918
|
+
NO_TRANSPOSE: TriangularSolveOptions.Transpose.ValueType # 1
|
|
1919
|
+
"""Don't transpose 'a'."""
|
|
1920
|
+
TRANSPOSE: TriangularSolveOptions.Transpose.ValueType # 2
|
|
1921
|
+
"""Transpose 'a'."""
|
|
1922
|
+
ADJOINT: TriangularSolveOptions.Transpose.ValueType # 3
|
|
1923
|
+
"""Complex conjugate and transpose 'a'."""
|
|
1924
|
+
|
|
1925
|
+
LEFT_SIDE_FIELD_NUMBER: builtins.int
|
|
1926
|
+
LOWER_FIELD_NUMBER: builtins.int
|
|
1927
|
+
UNIT_DIAGONAL_FIELD_NUMBER: builtins.int
|
|
1928
|
+
TRANSPOSE_A_FIELD_NUMBER: builtins.int
|
|
1929
|
+
left_side: builtins.bool
|
|
1930
|
+
"""If true, solves ax = b. If false, solves xa = b."""
|
|
1931
|
+
lower: builtins.bool
|
|
1932
|
+
"""If true, 'a' is lower triangular. If false, 'a' is upper triangular."""
|
|
1933
|
+
unit_diagonal: builtins.bool
|
|
1934
|
+
"""If true, the diagonal elements of 'a' are assumed to be 1 and not accessed."""
|
|
1935
|
+
transpose_a: global___TriangularSolveOptions.Transpose.ValueType
|
|
1936
|
+
def __init__(
|
|
1937
|
+
self,
|
|
1938
|
+
*,
|
|
1939
|
+
left_side: builtins.bool | None = ...,
|
|
1940
|
+
lower: builtins.bool | None = ...,
|
|
1941
|
+
unit_diagonal: builtins.bool | None = ...,
|
|
1942
|
+
transpose_a: global___TriangularSolveOptions.Transpose.ValueType | None = ...,
|
|
1943
|
+
) -> None: ...
|
|
1944
|
+
def ClearField(
|
|
1945
|
+
self,
|
|
1946
|
+
field_name: typing.Literal[
|
|
1947
|
+
"left_side", b"left_side", "lower", b"lower", "transpose_a", b"transpose_a", "unit_diagonal", b"unit_diagonal"
|
|
1948
|
+
],
|
|
1949
|
+
) -> None: ...
|
|
1950
|
+
|
|
1951
|
+
global___TriangularSolveOptions = TriangularSolveOptions
|
|
1952
|
+
|
|
1953
|
+
@typing.final
|
|
1954
|
+
class CholeskyOptions(google.protobuf.message.Message):
|
|
1955
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1956
|
+
|
|
1957
|
+
LOWER_FIELD_NUMBER: builtins.int
|
|
1958
|
+
lower: builtins.bool
|
|
1959
|
+
"""If true, uses the lower triangle of `a`. If false, uses the upper triangle
|
|
1960
|
+
of `a`.
|
|
1961
|
+
"""
|
|
1962
|
+
def __init__(self, *, lower: builtins.bool | None = ...) -> None: ...
|
|
1963
|
+
def ClearField(self, field_name: typing.Literal["lower", b"lower"]) -> None: ...
|
|
1964
|
+
|
|
1965
|
+
global___CholeskyOptions = CholeskyOptions
|
|
1966
|
+
|
|
1967
|
+
@typing.final
|
|
1968
|
+
class SortOptions(google.protobuf.message.Message):
|
|
1969
|
+
"""Attributes of the sort custom call (cub::DeviceRadixSort)."""
|
|
1970
|
+
|
|
1971
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1972
|
+
|
|
1973
|
+
DESCENDING_FIELD_NUMBER: builtins.int
|
|
1974
|
+
descending: builtins.bool
|
|
1975
|
+
def __init__(self, *, descending: builtins.bool | None = ...) -> None: ...
|
|
1976
|
+
def ClearField(self, field_name: typing.Literal["descending", b"descending"]) -> None: ...
|
|
1977
|
+
|
|
1978
|
+
global___SortOptions = SortOptions
|
|
1979
|
+
|
|
1980
|
+
@typing.final
|
|
1981
|
+
class FrontendAttributes(google.protobuf.message.Message):
|
|
1982
|
+
"""Generic map of attributes used to pass hints / configuration options from
|
|
1983
|
+
the Python frontend to the XLA backend.
|
|
1984
|
+
"""
|
|
1985
|
+
|
|
1986
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1987
|
+
|
|
1988
|
+
@typing.final
|
|
1989
|
+
class MapEntry(google.protobuf.message.Message):
|
|
1990
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1991
|
+
|
|
1992
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
1993
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
1994
|
+
key: builtins.str
|
|
1995
|
+
value: builtins.str
|
|
1996
|
+
def __init__(self, *, key: builtins.str | None = ..., value: builtins.str | None = ...) -> None: ...
|
|
1997
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
1998
|
+
|
|
1999
|
+
MAP_FIELD_NUMBER: builtins.int
|
|
2000
|
+
@property
|
|
2001
|
+
def map(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
2002
|
+
def __init__(self, *, map: collections.abc.Mapping[builtins.str, builtins.str] | None = ...) -> None: ...
|
|
2003
|
+
def ClearField(self, field_name: typing.Literal["map", b"map"]) -> None: ...
|
|
2004
|
+
|
|
2005
|
+
global___FrontendAttributes = FrontendAttributes
|
|
2006
|
+
|
|
2007
|
+
@typing.final
|
|
2008
|
+
class Statistic(google.protobuf.message.Message):
|
|
2009
|
+
"""Represents a single statistic to track."""
|
|
2010
|
+
|
|
2011
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2012
|
+
|
|
2013
|
+
STAT_NAME_FIELD_NUMBER: builtins.int
|
|
2014
|
+
STAT_VAL_FIELD_NUMBER: builtins.int
|
|
2015
|
+
stat_name: builtins.str
|
|
2016
|
+
"""Must be a single word consisting of any alphanumeric characters"""
|
|
2017
|
+
stat_val: builtins.float
|
|
2018
|
+
"""Must be within a range of [0, 100], in order for the graph dumper to
|
|
2019
|
+
properly render the statistic onto the graph.
|
|
2020
|
+
"""
|
|
2021
|
+
def __init__(self, *, stat_name: builtins.str | None = ..., stat_val: builtins.float | None = ...) -> None: ...
|
|
2022
|
+
def ClearField(self, field_name: typing.Literal["stat_name", b"stat_name", "stat_val", b"stat_val"]) -> None: ...
|
|
2023
|
+
|
|
2024
|
+
global___Statistic = Statistic
|
|
2025
|
+
|
|
2026
|
+
@typing.final
|
|
2027
|
+
class StatisticsViz(google.protobuf.message.Message):
|
|
2028
|
+
"""Represents the information needed to visualize propagation statistics when
|
|
2029
|
+
rendering an HLO graph. This includes an array of statistics as well as the
|
|
2030
|
+
index of the statistic to render.
|
|
2031
|
+
"""
|
|
2032
|
+
|
|
2033
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2034
|
+
|
|
2035
|
+
STAT_INDEX_TO_VISUALIZE_FIELD_NUMBER: builtins.int
|
|
2036
|
+
STATISTICS_FIELD_NUMBER: builtins.int
|
|
2037
|
+
stat_index_to_visualize: builtins.int
|
|
2038
|
+
@property
|
|
2039
|
+
def statistics(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Statistic]: ...
|
|
2040
|
+
def __init__(
|
|
2041
|
+
self,
|
|
2042
|
+
*,
|
|
2043
|
+
stat_index_to_visualize: builtins.int | None = ...,
|
|
2044
|
+
statistics: collections.abc.Iterable[global___Statistic] | None = ...,
|
|
2045
|
+
) -> None: ...
|
|
2046
|
+
def ClearField(
|
|
2047
|
+
self, field_name: typing.Literal["stat_index_to_visualize", b"stat_index_to_visualize", "statistics", b"statistics"]
|
|
2048
|
+
) -> None: ...
|
|
2049
|
+
|
|
2050
|
+
global___StatisticsViz = StatisticsViz
|
|
2051
|
+
|
|
2052
|
+
@typing.final
|
|
2053
|
+
class OpSharding(google.protobuf.message.Message):
|
|
2054
|
+
"""LINT.IfChange"""
|
|
2055
|
+
|
|
2056
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2057
|
+
|
|
2058
|
+
class _Type:
|
|
2059
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
2060
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
2061
|
+
|
|
2062
|
+
class _TypeEnumTypeWrapper(
|
|
2063
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OpSharding._Type.ValueType], builtins.type
|
|
2064
|
+
):
|
|
2065
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
2066
|
+
REPLICATED: OpSharding._Type.ValueType # 0
|
|
2067
|
+
"""This sharding is replicated across all devices (implies maximal,
|
|
2068
|
+
all other fields are unused).
|
|
2069
|
+
"""
|
|
2070
|
+
MAXIMAL: OpSharding._Type.ValueType # 1
|
|
2071
|
+
"""This sharding is maximal - one device runs the entire operation."""
|
|
2072
|
+
TUPLE: OpSharding._Type.ValueType # 2
|
|
2073
|
+
"""This sharding is a tuple - only the tuple_shardings field is valid."""
|
|
2074
|
+
OTHER: OpSharding._Type.ValueType # 3
|
|
2075
|
+
"""None of the above; tile_shape and tile_assignment are both used."""
|
|
2076
|
+
MANUAL: OpSharding._Type.ValueType # 4
|
|
2077
|
+
"""This op is manually sharded: the shapes are already partitioned and the
|
|
2078
|
+
partitioner should not change this op.
|
|
2079
|
+
"""
|
|
2080
|
+
UNKNOWN: OpSharding._Type.ValueType # 5
|
|
2081
|
+
"""This sharding is a placeholder sharding with lowest precedence, it can be
|
|
2082
|
+
overwriten by any other shardings.
|
|
2083
|
+
"""
|
|
2084
|
+
|
|
2085
|
+
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
|
2086
|
+
REPLICATED: OpSharding.Type.ValueType # 0
|
|
2087
|
+
"""This sharding is replicated across all devices (implies maximal,
|
|
2088
|
+
all other fields are unused).
|
|
2089
|
+
"""
|
|
2090
|
+
MAXIMAL: OpSharding.Type.ValueType # 1
|
|
2091
|
+
"""This sharding is maximal - one device runs the entire operation."""
|
|
2092
|
+
TUPLE: OpSharding.Type.ValueType # 2
|
|
2093
|
+
"""This sharding is a tuple - only the tuple_shardings field is valid."""
|
|
2094
|
+
OTHER: OpSharding.Type.ValueType # 3
|
|
2095
|
+
"""None of the above; tile_shape and tile_assignment are both used."""
|
|
2096
|
+
MANUAL: OpSharding.Type.ValueType # 4
|
|
2097
|
+
"""This op is manually sharded: the shapes are already partitioned and the
|
|
2098
|
+
partitioner should not change this op.
|
|
2099
|
+
"""
|
|
2100
|
+
UNKNOWN: OpSharding.Type.ValueType # 5
|
|
2101
|
+
"""This sharding is a placeholder sharding with lowest precedence, it can be
|
|
2102
|
+
overwriten by any other shardings.
|
|
2103
|
+
"""
|
|
2104
|
+
|
|
2105
|
+
class _ShardGroupType:
|
|
2106
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
2107
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
2108
|
+
|
|
2109
|
+
class _ShardGroupTypeEnumTypeWrapper(
|
|
2110
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[OpSharding._ShardGroupType.ValueType], builtins.type
|
|
2111
|
+
):
|
|
2112
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
2113
|
+
AS: OpSharding._ShardGroupType.ValueType # 0
|
|
2114
|
+
"""This op will be sharded exactly the same as the other op. (hard
|
|
2115
|
+
restriction)
|
|
2116
|
+
"""
|
|
2117
|
+
LIKE: OpSharding._ShardGroupType.ValueType # 1
|
|
2118
|
+
"""This op will try to allow sharding propagation within the same group even
|
|
2119
|
+
there is no data dependencies among them, but there is no guarantee that
|
|
2120
|
+
the final shardings within the same group will be exactly the same. (soft
|
|
2121
|
+
restriction)
|
|
2122
|
+
"""
|
|
2123
|
+
|
|
2124
|
+
class ShardGroupType(_ShardGroupType, metaclass=_ShardGroupTypeEnumTypeWrapper):
|
|
2125
|
+
"""Used to decide whether this op is to be sharded like some other ops, or to
|
|
2126
|
+
which other ops will be sharded like.
|
|
2127
|
+
"""
|
|
2128
|
+
|
|
2129
|
+
AS: OpSharding.ShardGroupType.ValueType # 0
|
|
2130
|
+
"""This op will be sharded exactly the same as the other op. (hard
|
|
2131
|
+
restriction)
|
|
2132
|
+
"""
|
|
2133
|
+
LIKE: OpSharding.ShardGroupType.ValueType # 1
|
|
2134
|
+
"""This op will try to allow sharding propagation within the same group even
|
|
2135
|
+
there is no data dependencies among them, but there is no guarantee that
|
|
2136
|
+
the final shardings within the same group will be exactly the same. (soft
|
|
2137
|
+
restriction)
|
|
2138
|
+
"""
|
|
2139
|
+
|
|
2140
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
2141
|
+
TILE_SHAPE_FIELD_NUMBER: builtins.int
|
|
2142
|
+
TILE_ASSIGNMENT_DIMENSIONS_FIELD_NUMBER: builtins.int
|
|
2143
|
+
TILE_ASSIGNMENT_DEVICES_FIELD_NUMBER: builtins.int
|
|
2144
|
+
TUPLE_SHARDINGS_FIELD_NUMBER: builtins.int
|
|
2145
|
+
REPLICATE_ON_LAST_TILE_DIM_FIELD_NUMBER: builtins.int
|
|
2146
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
2147
|
+
LAST_TILE_DIMS_FIELD_NUMBER: builtins.int
|
|
2148
|
+
IOTA_RESHAPE_DIMS_FIELD_NUMBER: builtins.int
|
|
2149
|
+
IOTA_TRANSPOSE_PERM_FIELD_NUMBER: builtins.int
|
|
2150
|
+
IS_SHARD_GROUP_FIELD_NUMBER: builtins.int
|
|
2151
|
+
SHARD_GROUP_ID_FIELD_NUMBER: builtins.int
|
|
2152
|
+
SHARD_GROUP_TYPE_FIELD_NUMBER: builtins.int
|
|
2153
|
+
type: global___OpSharding.Type.ValueType
|
|
2154
|
+
replicate_on_last_tile_dim: builtins.bool
|
|
2155
|
+
"""Only used for OTHER type. If true, data is sharded according to other
|
|
2156
|
+
dimensions of tile_assignment(), but replicated across devices along the
|
|
2157
|
+
last dimension. (Experimental)
|
|
2158
|
+
"""
|
|
2159
|
+
is_shard_group: builtins.bool
|
|
2160
|
+
"""This field decides whether this op is in a shard group."""
|
|
2161
|
+
shard_group_id: builtins.int
|
|
2162
|
+
"""This field is used to store the unique id of the shard group."""
|
|
2163
|
+
shard_group_type: global___OpSharding.ShardGroupType.ValueType
|
|
2164
|
+
@property
|
|
2165
|
+
def tile_shape(self) -> global___ShapeProto:
|
|
2166
|
+
"""The shape of the sharded tile."""
|
|
2167
|
+
|
|
2168
|
+
@property
|
|
2169
|
+
def tile_assignment_dimensions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2170
|
+
"""The shape of the tile assignment tensor - this must be the same rank as
|
|
2171
|
+
tile_shape and the product of its dimensions must equal
|
|
2172
|
+
tile_assignment_devices.size().
|
|
2173
|
+
"""
|
|
2174
|
+
|
|
2175
|
+
@property
|
|
2176
|
+
def tile_assignment_devices(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2177
|
+
"""Flattened list of device IDs. The order of flattening is the same as used
|
|
2178
|
+
by IndexUtil::MultiToLinearIndex(tile_assignment_shape).
|
|
2179
|
+
Only one of tile_assignment_devices and iota_dimensions shall be non-empty.
|
|
2180
|
+
"""
|
|
2181
|
+
|
|
2182
|
+
@property
|
|
2183
|
+
def tuple_shardings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OpSharding]:
|
|
2184
|
+
"""If type == TUPLE, the sub-shardings, one per leaf node in the tuple shape,
|
|
2185
|
+
in pre-order. The tuple shape could be nested; here we store just a
|
|
2186
|
+
flattened list of all leaves in the tuple shape. Note that the tuple shape
|
|
2187
|
+
is not stored here; shardings do not store the shapes to which they are
|
|
2188
|
+
applied, this is inferred from the instruction this sharding gets attached
|
|
2189
|
+
to.
|
|
2190
|
+
"""
|
|
2191
|
+
|
|
2192
|
+
@property
|
|
2193
|
+
def metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OpMetadata]:
|
|
2194
|
+
"""This field is used to track the source of this sharding, usually derived
|
|
2195
|
+
from instructions. Multple metadata may be populated if sharding is
|
|
2196
|
+
combined with other shardings. Metadata are to not be populated when
|
|
2197
|
+
type == TUPLE and instead metadata should be set on individual tuple
|
|
2198
|
+
elements.
|
|
2199
|
+
"""
|
|
2200
|
+
|
|
2201
|
+
@property
|
|
2202
|
+
def last_tile_dims(
|
|
2203
|
+
self,
|
|
2204
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___OpSharding.Type.ValueType]:
|
|
2205
|
+
"""This field is used to represented the sharding type of each subgroup.
|
|
2206
|
+
For example, sharding={devices=[2,2,2,2]0,1,2,...,15 last_tile_dims={
|
|
2207
|
+
replicate, manual, unreduced}} means that each of the last 3 dimensions
|
|
2208
|
+
in [2,2,2,2] represents a subgrouping in replicate, manual,
|
|
2209
|
+
unreduced sharding type respectively.
|
|
2210
|
+
"""
|
|
2211
|
+
|
|
2212
|
+
@property
|
|
2213
|
+
def iota_reshape_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2214
|
+
"""Dimensions used to reshape the 1D iota array of device IDs.
|
|
2215
|
+
Only one of tile_assignment_devices and iota_reshape_dims shall be
|
|
2216
|
+
non-empty.
|
|
2217
|
+
"""
|
|
2218
|
+
|
|
2219
|
+
@property
|
|
2220
|
+
def iota_transpose_perm(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2221
|
+
"""Dimension permutations to transposed the iota array reshaped to
|
|
2222
|
+
iota_reshape_dims. This must have the same size as iota_reshape_dims.
|
|
2223
|
+
"""
|
|
2224
|
+
|
|
2225
|
+
def __init__(
|
|
2226
|
+
self,
|
|
2227
|
+
*,
|
|
2228
|
+
type: global___OpSharding.Type.ValueType | None = ...,
|
|
2229
|
+
tile_shape: global___ShapeProto | None = ...,
|
|
2230
|
+
tile_assignment_dimensions: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2231
|
+
tile_assignment_devices: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2232
|
+
tuple_shardings: collections.abc.Iterable[global___OpSharding] | None = ...,
|
|
2233
|
+
replicate_on_last_tile_dim: builtins.bool | None = ...,
|
|
2234
|
+
metadata: collections.abc.Iterable[global___OpMetadata] | None = ...,
|
|
2235
|
+
last_tile_dims: collections.abc.Iterable[global___OpSharding.Type.ValueType] | None = ...,
|
|
2236
|
+
iota_reshape_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2237
|
+
iota_transpose_perm: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2238
|
+
is_shard_group: builtins.bool | None = ...,
|
|
2239
|
+
shard_group_id: builtins.int | None = ...,
|
|
2240
|
+
shard_group_type: global___OpSharding.ShardGroupType.ValueType | None = ...,
|
|
2241
|
+
) -> None: ...
|
|
2242
|
+
def HasField(self, field_name: typing.Literal["tile_shape", b"tile_shape"]) -> builtins.bool: ...
|
|
2243
|
+
def ClearField(
|
|
2244
|
+
self,
|
|
2245
|
+
field_name: typing.Literal[
|
|
2246
|
+
"iota_reshape_dims",
|
|
2247
|
+
b"iota_reshape_dims",
|
|
2248
|
+
"iota_transpose_perm",
|
|
2249
|
+
b"iota_transpose_perm",
|
|
2250
|
+
"is_shard_group",
|
|
2251
|
+
b"is_shard_group",
|
|
2252
|
+
"last_tile_dims",
|
|
2253
|
+
b"last_tile_dims",
|
|
2254
|
+
"metadata",
|
|
2255
|
+
b"metadata",
|
|
2256
|
+
"replicate_on_last_tile_dim",
|
|
2257
|
+
b"replicate_on_last_tile_dim",
|
|
2258
|
+
"shard_group_id",
|
|
2259
|
+
b"shard_group_id",
|
|
2260
|
+
"shard_group_type",
|
|
2261
|
+
b"shard_group_type",
|
|
2262
|
+
"tile_assignment_devices",
|
|
2263
|
+
b"tile_assignment_devices",
|
|
2264
|
+
"tile_assignment_dimensions",
|
|
2265
|
+
b"tile_assignment_dimensions",
|
|
2266
|
+
"tile_shape",
|
|
2267
|
+
b"tile_shape",
|
|
2268
|
+
"tuple_shardings",
|
|
2269
|
+
b"tuple_shardings",
|
|
2270
|
+
"type",
|
|
2271
|
+
b"type",
|
|
2272
|
+
],
|
|
2273
|
+
) -> None: ...
|
|
2274
|
+
|
|
2275
|
+
global___OpSharding = OpSharding
|
|
2276
|
+
|
|
2277
|
+
@typing.final
|
|
2278
|
+
class ReplicaGroup(google.protobuf.message.Message):
|
|
2279
|
+
"""Describes the replica groups in a cross replica op (e.g., all-reduce and
|
|
2280
|
+
all-to-all).
|
|
2281
|
+
"""
|
|
2282
|
+
|
|
2283
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2284
|
+
|
|
2285
|
+
REPLICA_IDS_FIELD_NUMBER: builtins.int
|
|
2286
|
+
@property
|
|
2287
|
+
def replica_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2288
|
+
"""The ids of the replicas that belongs to the same group. The ordering of the
|
|
2289
|
+
ids matters in some ops (e.g., all-to-all).
|
|
2290
|
+
"""
|
|
2291
|
+
|
|
2292
|
+
def __init__(self, *, replica_ids: collections.abc.Iterable[builtins.int] | None = ...) -> None: ...
|
|
2293
|
+
def ClearField(self, field_name: typing.Literal["replica_ids", b"replica_ids"]) -> None: ...
|
|
2294
|
+
|
|
2295
|
+
global___ReplicaGroup = ReplicaGroup
|
|
2296
|
+
|
|
2297
|
+
@typing.final
|
|
2298
|
+
class IotaReplicaGroupListProto(google.protobuf.message.Message):
|
|
2299
|
+
"""Represents a list of replica groups (a list of list of devices) with
|
|
2300
|
+
reshaping and transposing an iota array (iota tile assignment). Can be used
|
|
2301
|
+
to represent certain common patterns of device lists in a compact, scalable
|
|
2302
|
+
format.
|
|
2303
|
+
"""
|
|
2304
|
+
|
|
2305
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2306
|
+
|
|
2307
|
+
NUM_REPLICA_GROUPS_FIELD_NUMBER: builtins.int
|
|
2308
|
+
NUM_DEVICES_PER_GROUP_FIELD_NUMBER: builtins.int
|
|
2309
|
+
IOTA_RESHAPE_DIMS_FIELD_NUMBER: builtins.int
|
|
2310
|
+
IOTA_TRANSPOSE_PERM_FIELD_NUMBER: builtins.int
|
|
2311
|
+
num_replica_groups: builtins.int
|
|
2312
|
+
"""Number of replica groups."""
|
|
2313
|
+
num_devices_per_group: builtins.int
|
|
2314
|
+
"""Number of devices per group."""
|
|
2315
|
+
@property
|
|
2316
|
+
def iota_reshape_dims(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2317
|
+
"""The dimensions used to reshape the 1D iota array of device IDs."""
|
|
2318
|
+
|
|
2319
|
+
@property
|
|
2320
|
+
def iota_transpose_perm(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
|
2321
|
+
"""The dimension permutations to transposed the iota array reshaped to
|
|
2322
|
+
iota_reshape_dims. This must have the same size as iota_reshape_dims.
|
|
2323
|
+
"""
|
|
2324
|
+
|
|
2325
|
+
def __init__(
|
|
2326
|
+
self,
|
|
2327
|
+
*,
|
|
2328
|
+
num_replica_groups: builtins.int | None = ...,
|
|
2329
|
+
num_devices_per_group: builtins.int | None = ...,
|
|
2330
|
+
iota_reshape_dims: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2331
|
+
iota_transpose_perm: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2332
|
+
) -> None: ...
|
|
2333
|
+
def ClearField(
|
|
2334
|
+
self,
|
|
2335
|
+
field_name: typing.Literal[
|
|
2336
|
+
"iota_reshape_dims",
|
|
2337
|
+
b"iota_reshape_dims",
|
|
2338
|
+
"iota_transpose_perm",
|
|
2339
|
+
b"iota_transpose_perm",
|
|
2340
|
+
"num_devices_per_group",
|
|
2341
|
+
b"num_devices_per_group",
|
|
2342
|
+
"num_replica_groups",
|
|
2343
|
+
b"num_replica_groups",
|
|
2344
|
+
],
|
|
2345
|
+
) -> None: ...
|
|
2346
|
+
|
|
2347
|
+
global___IotaReplicaGroupListProto = IotaReplicaGroupListProto
|
|
2348
|
+
|
|
2349
|
+
@typing.final
|
|
2350
|
+
class CollectiveDeviceListProto(google.protobuf.message.Message):
|
|
2351
|
+
"""Represents a series of devices participating in a collective operation (e.g.,
|
|
2352
|
+
all-reduce and all-to-all). While this directly translates to a list of
|
|
2353
|
+
replica groups, it may be used to represent these lists in a compact form.
|
|
2354
|
+
"""
|
|
2355
|
+
|
|
2356
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2357
|
+
|
|
2358
|
+
REPLICA_GROUPS_FIELD_NUMBER: builtins.int
|
|
2359
|
+
IOTA_REPLICA_GROUP_LIST_FIELD_NUMBER: builtins.int
|
|
2360
|
+
@property
|
|
2361
|
+
def replica_groups(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ReplicaGroup]:
|
|
2362
|
+
"""ReplicaGroupV1: List of replica groups. Legacy way of representing device
|
|
2363
|
+
lists.
|
|
2364
|
+
"""
|
|
2365
|
+
|
|
2366
|
+
@property
|
|
2367
|
+
def iota_replica_group_list(self) -> global___IotaReplicaGroupListProto:
|
|
2368
|
+
"""ReplicaGroupV2: Represents a list of replica groups with reshaping and
|
|
2369
|
+
transposing an iota array.
|
|
2370
|
+
"""
|
|
2371
|
+
|
|
2372
|
+
def __init__(
|
|
2373
|
+
self,
|
|
2374
|
+
*,
|
|
2375
|
+
replica_groups: collections.abc.Iterable[global___ReplicaGroup] | None = ...,
|
|
2376
|
+
iota_replica_group_list: global___IotaReplicaGroupListProto | None = ...,
|
|
2377
|
+
) -> None: ...
|
|
2378
|
+
def HasField(self, field_name: typing.Literal["iota_replica_group_list", b"iota_replica_group_list"]) -> builtins.bool: ...
|
|
2379
|
+
def ClearField(
|
|
2380
|
+
self,
|
|
2381
|
+
field_name: typing.Literal["iota_replica_group_list", b"iota_replica_group_list", "replica_groups", b"replica_groups"],
|
|
2382
|
+
) -> None: ...
|
|
2383
|
+
|
|
2384
|
+
global___CollectiveDeviceListProto = CollectiveDeviceListProto
|
|
2385
|
+
|
|
2386
|
+
@typing.final
|
|
2387
|
+
class SourceTarget(google.protobuf.message.Message):
|
|
2388
|
+
"""Describes the source target pair in the collective permute op."""
|
|
2389
|
+
|
|
2390
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2391
|
+
|
|
2392
|
+
SOURCE_FIELD_NUMBER: builtins.int
|
|
2393
|
+
TARGET_FIELD_NUMBER: builtins.int
|
|
2394
|
+
source: builtins.int
|
|
2395
|
+
target: builtins.int
|
|
2396
|
+
def __init__(self, *, source: builtins.int | None = ..., target: builtins.int | None = ...) -> None: ...
|
|
2397
|
+
def ClearField(self, field_name: typing.Literal["source", b"source", "target", b"target"]) -> None: ...
|
|
2398
|
+
|
|
2399
|
+
global___SourceTarget = SourceTarget
|
|
2400
|
+
|
|
2401
|
+
@typing.final
|
|
2402
|
+
class PrecisionConfig(google.protobuf.message.Message):
|
|
2403
|
+
"""Used to indicate the precision configuration. It has backend specific
|
|
2404
|
+
meaning.
|
|
2405
|
+
"""
|
|
2406
|
+
|
|
2407
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2408
|
+
|
|
2409
|
+
class _Precision:
|
|
2410
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
2411
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
2412
|
+
|
|
2413
|
+
class _PrecisionEnumTypeWrapper(
|
|
2414
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PrecisionConfig._Precision.ValueType], builtins.type
|
|
2415
|
+
):
|
|
2416
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
2417
|
+
DEFAULT: PrecisionConfig._Precision.ValueType # 0
|
|
2418
|
+
HIGH: PrecisionConfig._Precision.ValueType # 1
|
|
2419
|
+
HIGHEST: PrecisionConfig._Precision.ValueType # 2
|
|
2420
|
+
PACKED_NIBBLE: PrecisionConfig._Precision.ValueType # 3
|
|
2421
|
+
"""Each U8/S8 value in a tensor actually represents 2 nibble values."""
|
|
2422
|
+
|
|
2423
|
+
class Precision(_Precision, metaclass=_PrecisionEnumTypeWrapper): ...
|
|
2424
|
+
DEFAULT: PrecisionConfig.Precision.ValueType # 0
|
|
2425
|
+
HIGH: PrecisionConfig.Precision.ValueType # 1
|
|
2426
|
+
HIGHEST: PrecisionConfig.Precision.ValueType # 2
|
|
2427
|
+
PACKED_NIBBLE: PrecisionConfig.Precision.ValueType # 3
|
|
2428
|
+
"""Each U8/S8 value in a tensor actually represents 2 nibble values."""
|
|
2429
|
+
|
|
2430
|
+
class _Algorithm:
|
|
2431
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
2432
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
2433
|
+
|
|
2434
|
+
class _AlgorithmEnumTypeWrapper(
|
|
2435
|
+
google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[PrecisionConfig._Algorithm.ValueType], builtins.type
|
|
2436
|
+
):
|
|
2437
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
2438
|
+
ALG_UNSET: PrecisionConfig._Algorithm.ValueType # 0
|
|
2439
|
+
"""If the algorithm is `ALG_UNSET`, we will decide the algorithm based on
|
|
2440
|
+
the operand_precision values (for now).
|
|
2441
|
+
"""
|
|
2442
|
+
ALG_DOT_ANY_F8_ANY_F8_F32: PrecisionConfig._Algorithm.ValueType # 1
|
|
2443
|
+
"""The storage type can be any 8-bit floating point type."""
|
|
2444
|
+
ALG_DOT_ANY_F8_ANY_F8_F32_FAST_ACCUM: PrecisionConfig._Algorithm.ValueType # 2
|
|
2445
|
+
"""The storage type can be any 8-bit floating point type. Intermediate
|
|
2446
|
+
results will not periodically be promoted to a higher precision. This
|
|
2447
|
+
corresponds to CUBLASLT_MATMUL_DESC_FAST_ACCUM. Triton's
|
|
2448
|
+
maxNumImpreciseAcc=32 setting may be similar.
|
|
2449
|
+
"""
|
|
2450
|
+
ALG_DOT_F16_F16_F16: PrecisionConfig._Algorithm.ValueType # 3
|
|
2451
|
+
ALG_DOT_F16_F16_F32: PrecisionConfig._Algorithm.ValueType # 4
|
|
2452
|
+
ALG_DOT_BF16_BF16_BF16: PrecisionConfig._Algorithm.ValueType # 5
|
|
2453
|
+
ALG_DOT_BF16_BF16_F32: PrecisionConfig._Algorithm.ValueType # 6
|
|
2454
|
+
ALG_DOT_BF16_BF16_F32_X3: PrecisionConfig._Algorithm.ValueType # 7
|
|
2455
|
+
"""An algorithm which uses 3 BF16_BF16_F32 matmuls to achieve better
|
|
2456
|
+
precision.
|
|
2457
|
+
"""
|
|
2458
|
+
ALG_DOT_BF16_BF16_F32_X6: PrecisionConfig._Algorithm.ValueType # 8
|
|
2459
|
+
"""An algorithm which uses 6 BF16_BF16_F32 matmuls to achieve better
|
|
2460
|
+
precision (similar to F32).
|
|
2461
|
+
"""
|
|
2462
|
+
ALG_DOT_TF32_TF32_F32: PrecisionConfig._Algorithm.ValueType # 9
|
|
2463
|
+
ALG_DOT_TF32_TF32_F32_X3: PrecisionConfig._Algorithm.ValueType # 10
|
|
2464
|
+
"""An algorithm which uses 3 TF32_TF32_F32 matmuls to achieve better
|
|
2465
|
+
precision (similar to F32).
|
|
2466
|
+
"""
|
|
2467
|
+
ALG_DOT_F32_F32_F32: PrecisionConfig._Algorithm.ValueType # 11
|
|
2468
|
+
ALG_DOT_F64_F64_F64: PrecisionConfig._Algorithm.ValueType # 12
|
|
2469
|
+
|
|
2470
|
+
class Algorithm(_Algorithm, metaclass=_AlgorithmEnumTypeWrapper):
|
|
2471
|
+
"""The algorithm used to evaluate the instruction.
|
|
2472
|
+
|
|
2473
|
+
The naming convention for the dot instruction is
|
|
2474
|
+
ALG_DOT_{A_TYPE}_{B_TYPE}_{ACCUM_TYPE}[_X{NUM_OPS}] where A_TYPE, B_TYPE
|
|
2475
|
+
and ACCUM_TYPE correspond to the types in the "primitive dot operations"
|
|
2476
|
+
(such as TensorCore operations) and NUM_OPS is the number of such
|
|
2477
|
+
operations used per "primitive tile". When the NUM_OPS
|
|
2478
|
+
field is skipped, it is assumed to be 1. The types mentioned in the name
|
|
2479
|
+
are independent of the storage types.
|
|
2480
|
+
|
|
2481
|
+
In general ATYPE and BTYPE are the precisions that the LHS and RHS of the
|
|
2482
|
+
operation are rounded to and ACCUMTYPE is the accumulation type. If a
|
|
2483
|
+
backend does not support the given algorithm, an error is raised. The
|
|
2484
|
+
Algorithm enum is intended to eventually replace the Precision enum.
|
|
2485
|
+
"""
|
|
2486
|
+
|
|
2487
|
+
ALG_UNSET: PrecisionConfig.Algorithm.ValueType # 0
|
|
2488
|
+
"""If the algorithm is `ALG_UNSET`, we will decide the algorithm based on
|
|
2489
|
+
the operand_precision values (for now).
|
|
2490
|
+
"""
|
|
2491
|
+
ALG_DOT_ANY_F8_ANY_F8_F32: PrecisionConfig.Algorithm.ValueType # 1
|
|
2492
|
+
"""The storage type can be any 8-bit floating point type."""
|
|
2493
|
+
ALG_DOT_ANY_F8_ANY_F8_F32_FAST_ACCUM: PrecisionConfig.Algorithm.ValueType # 2
|
|
2494
|
+
"""The storage type can be any 8-bit floating point type. Intermediate
|
|
2495
|
+
results will not periodically be promoted to a higher precision. This
|
|
2496
|
+
corresponds to CUBLASLT_MATMUL_DESC_FAST_ACCUM. Triton's
|
|
2497
|
+
maxNumImpreciseAcc=32 setting may be similar.
|
|
2498
|
+
"""
|
|
2499
|
+
ALG_DOT_F16_F16_F16: PrecisionConfig.Algorithm.ValueType # 3
|
|
2500
|
+
ALG_DOT_F16_F16_F32: PrecisionConfig.Algorithm.ValueType # 4
|
|
2501
|
+
ALG_DOT_BF16_BF16_BF16: PrecisionConfig.Algorithm.ValueType # 5
|
|
2502
|
+
ALG_DOT_BF16_BF16_F32: PrecisionConfig.Algorithm.ValueType # 6
|
|
2503
|
+
ALG_DOT_BF16_BF16_F32_X3: PrecisionConfig.Algorithm.ValueType # 7
|
|
2504
|
+
"""An algorithm which uses 3 BF16_BF16_F32 matmuls to achieve better
|
|
2505
|
+
precision.
|
|
2506
|
+
"""
|
|
2507
|
+
ALG_DOT_BF16_BF16_F32_X6: PrecisionConfig.Algorithm.ValueType # 8
|
|
2508
|
+
"""An algorithm which uses 6 BF16_BF16_F32 matmuls to achieve better
|
|
2509
|
+
precision (similar to F32).
|
|
2510
|
+
"""
|
|
2511
|
+
ALG_DOT_TF32_TF32_F32: PrecisionConfig.Algorithm.ValueType # 9
|
|
2512
|
+
ALG_DOT_TF32_TF32_F32_X3: PrecisionConfig.Algorithm.ValueType # 10
|
|
2513
|
+
"""An algorithm which uses 3 TF32_TF32_F32 matmuls to achieve better
|
|
2514
|
+
precision (similar to F32).
|
|
2515
|
+
"""
|
|
2516
|
+
ALG_DOT_F32_F32_F32: PrecisionConfig.Algorithm.ValueType # 11
|
|
2517
|
+
ALG_DOT_F64_F64_F64: PrecisionConfig.Algorithm.ValueType # 12
|
|
2518
|
+
|
|
2519
|
+
OPERAND_PRECISION_FIELD_NUMBER: builtins.int
|
|
2520
|
+
ALGORITHM_FIELD_NUMBER: builtins.int
|
|
2521
|
+
algorithm: global___PrecisionConfig.Algorithm.ValueType
|
|
2522
|
+
"""Currently doesn't do anything, but we plan to support it for dot and
|
|
2523
|
+
possibly more instructions.
|
|
2524
|
+
|
|
2525
|
+
TODO(b/316147294): Support this on GPU and add this to StableHLO as well.
|
|
2526
|
+
|
|
2527
|
+
If this is set, then `operand_precision` should be set to DEFAULT and it
|
|
2528
|
+
will be ignored.
|
|
2529
|
+
"""
|
|
2530
|
+
@property
|
|
2531
|
+
def operand_precision(
|
|
2532
|
+
self,
|
|
2533
|
+
) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___PrecisionConfig.Precision.ValueType]: ...
|
|
2534
|
+
def __init__(
|
|
2535
|
+
self,
|
|
2536
|
+
*,
|
|
2537
|
+
operand_precision: collections.abc.Iterable[global___PrecisionConfig.Precision.ValueType] | None = ...,
|
|
2538
|
+
algorithm: global___PrecisionConfig.Algorithm.ValueType | None = ...,
|
|
2539
|
+
) -> None: ...
|
|
2540
|
+
def ClearField(
|
|
2541
|
+
self, field_name: typing.Literal["algorithm", b"algorithm", "operand_precision", b"operand_precision"]
|
|
2542
|
+
) -> None: ...
|
|
2543
|
+
|
|
2544
|
+
global___PrecisionConfig = PrecisionConfig
|
|
2545
|
+
|
|
2546
|
+
@typing.final
|
|
2547
|
+
class ParameterReplication(google.protobuf.message.Message):
|
|
2548
|
+
"""Describes whether all data-parallelism replicas will receive the same
|
|
2549
|
+
parameter data at each buffer.
|
|
2550
|
+
"""
|
|
2551
|
+
|
|
2552
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2553
|
+
|
|
2554
|
+
REPLICATED_AT_LEAF_BUFFERS_FIELD_NUMBER: builtins.int
|
|
2555
|
+
@property
|
|
2556
|
+
def replicated_at_leaf_buffers(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bool]:
|
|
2557
|
+
"""A list of boolean values for the flattened leaf buffers. Each value
|
|
2558
|
+
indicates whether the corresponding leaf buffer is replicated.
|
|
2559
|
+
|
|
2560
|
+
If this field is empty, it means no buffer is replicated. Otherwise, the
|
|
2561
|
+
number of elements in this field must match the number of leaf buffers in
|
|
2562
|
+
the HLO instruction's shape.
|
|
2563
|
+
"""
|
|
2564
|
+
|
|
2565
|
+
def __init__(self, *, replicated_at_leaf_buffers: collections.abc.Iterable[builtins.bool] | None = ...) -> None: ...
|
|
2566
|
+
def ClearField(self, field_name: typing.Literal["replicated_at_leaf_buffers", b"replicated_at_leaf_buffers"]) -> None: ...
|
|
2567
|
+
|
|
2568
|
+
global___ParameterReplication = ParameterReplication
|
|
2569
|
+
|
|
2570
|
+
@typing.final
|
|
2571
|
+
class WhileLoopBackendConfig(google.protobuf.message.Message):
|
|
2572
|
+
"""A backend-config for kWhile loops that stores the loop's trip count, if it is
|
|
2573
|
+
known.
|
|
2574
|
+
|
|
2575
|
+
This is useful for backends that can implement a `for i in 0..N` loop more
|
|
2576
|
+
efficiently than a `while` loop. For example, on GPUs, we can implement a
|
|
2577
|
+
`for i in 0..N` loop by enqueueing the kernels for the loop body N times,
|
|
2578
|
+
whereas implementing a `while` loop requires a host-device sync on each
|
|
2579
|
+
iteration.
|
|
2580
|
+
"""
|
|
2581
|
+
|
|
2582
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2583
|
+
|
|
2584
|
+
@typing.final
|
|
2585
|
+
class KnownTripCount(google.protobuf.message.Message):
|
|
2586
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2587
|
+
|
|
2588
|
+
N_FIELD_NUMBER: builtins.int
|
|
2589
|
+
n: builtins.int
|
|
2590
|
+
def __init__(self, *, n: builtins.int | None = ...) -> None: ...
|
|
2591
|
+
def ClearField(self, field_name: typing.Literal["n", b"n"]) -> None: ...
|
|
2592
|
+
|
|
2593
|
+
KNOWN_TRIP_COUNT_FIELD_NUMBER: builtins.int
|
|
2594
|
+
@property
|
|
2595
|
+
def known_trip_count(self) -> global___WhileLoopBackendConfig.KnownTripCount:
|
|
2596
|
+
"""This indirection lets us distinguish between known-trip-count == 0 and
|
|
2597
|
+
unknown-trip-count.
|
|
2598
|
+
"""
|
|
2599
|
+
|
|
2600
|
+
def __init__(self, *, known_trip_count: global___WhileLoopBackendConfig.KnownTripCount | None = ...) -> None: ...
|
|
2601
|
+
def HasField(self, field_name: typing.Literal["known_trip_count", b"known_trip_count"]) -> builtins.bool: ...
|
|
2602
|
+
def ClearField(self, field_name: typing.Literal["known_trip_count", b"known_trip_count"]) -> None: ...
|
|
2603
|
+
|
|
2604
|
+
global___WhileLoopBackendConfig = WhileLoopBackendConfig
|
|
2605
|
+
|
|
2606
|
+
@typing.final
|
|
2607
|
+
class OutputOperandAliasing(google.protobuf.message.Message):
|
|
2608
|
+
"""Specifies a pair of output/operand buffers that alias each other for
|
|
2609
|
+
kCustomCall and kFusion
|
|
2610
|
+
"""
|
|
2611
|
+
|
|
2612
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2613
|
+
|
|
2614
|
+
OUTPUT_SHAPE_INDEX_FIELD_NUMBER: builtins.int
|
|
2615
|
+
OPERAND_INDEX_FIELD_NUMBER: builtins.int
|
|
2616
|
+
OPERAND_SHAPE_INDEX_FIELD_NUMBER: builtins.int
|
|
2617
|
+
operand_index: builtins.int
|
|
2618
|
+
@property
|
|
2619
|
+
def output_shape_index(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
2620
|
+
@property
|
|
2621
|
+
def operand_shape_index(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
2622
|
+
def __init__(
|
|
2623
|
+
self,
|
|
2624
|
+
*,
|
|
2625
|
+
output_shape_index: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2626
|
+
operand_index: builtins.int | None = ...,
|
|
2627
|
+
operand_shape_index: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2628
|
+
) -> None: ...
|
|
2629
|
+
def ClearField(
|
|
2630
|
+
self,
|
|
2631
|
+
field_name: typing.Literal[
|
|
2632
|
+
"operand_index",
|
|
2633
|
+
b"operand_index",
|
|
2634
|
+
"operand_shape_index",
|
|
2635
|
+
b"operand_shape_index",
|
|
2636
|
+
"output_shape_index",
|
|
2637
|
+
b"output_shape_index",
|
|
2638
|
+
],
|
|
2639
|
+
) -> None: ...
|
|
2640
|
+
|
|
2641
|
+
global___OutputOperandAliasing = OutputOperandAliasing
|
|
2642
|
+
|
|
2643
|
+
@typing.final
|
|
2644
|
+
class OriginalArrayProto(google.protobuf.message.Message):
|
|
2645
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2646
|
+
|
|
2647
|
+
LEAF_SHAPE_INDEX_FIELD_NUMBER: builtins.int
|
|
2648
|
+
INSTRUCTION_NAME_FIELD_NUMBER: builtins.int
|
|
2649
|
+
SHAPE_INDEX_FIELD_NUMBER: builtins.int
|
|
2650
|
+
instruction_name: builtins.str
|
|
2651
|
+
@property
|
|
2652
|
+
def leaf_shape_index(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
2653
|
+
@property
|
|
2654
|
+
def shape_index(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ...
|
|
2655
|
+
def __init__(
|
|
2656
|
+
self,
|
|
2657
|
+
*,
|
|
2658
|
+
leaf_shape_index: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2659
|
+
instruction_name: builtins.str | None = ...,
|
|
2660
|
+
shape_index: collections.abc.Iterable[builtins.int] | None = ...,
|
|
2661
|
+
) -> None: ...
|
|
2662
|
+
def ClearField(
|
|
2663
|
+
self,
|
|
2664
|
+
field_name: typing.Literal[
|
|
2665
|
+
"instruction_name", b"instruction_name", "leaf_shape_index", b"leaf_shape_index", "shape_index", b"shape_index"
|
|
2666
|
+
],
|
|
2667
|
+
) -> None: ...
|
|
2668
|
+
|
|
2669
|
+
global___OriginalArrayProto = OriginalArrayProto
|
|
2670
|
+
|
|
2671
|
+
@typing.final
|
|
2672
|
+
class OriginalValueProto(google.protobuf.message.Message):
|
|
2673
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
2674
|
+
|
|
2675
|
+
LEAVES_FIELD_NUMBER: builtins.int
|
|
2676
|
+
@property
|
|
2677
|
+
def leaves(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___OriginalArrayProto]: ...
|
|
2678
|
+
def __init__(self, *, leaves: collections.abc.Iterable[global___OriginalArrayProto] | None = ...) -> None: ...
|
|
2679
|
+
def ClearField(self, field_name: typing.Literal["leaves", b"leaves"]) -> None: ...
|
|
2680
|
+
|
|
2681
|
+
global___OriginalValueProto = OriginalValueProto
|