Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Enable (0.22 sec)

  1. scripts/docs.py

        This only shows the actual translated files, not the placeholders created with
        build-all.
    
        Takes an optional LANG argument with the name of the language to serve, by default
        en.
        """
        # Enable line numbers during local development to make it easier to highlight
        os.environ["LINENUMS"] = "true"
        if lang is None:
            lang = "en"
        lang_path: Path = docs_path / lang
        os.chdir(lang_path)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Jan 22 19:26:14 GMT 2024
    - 10.9K bytes
    - Viewed (1)
  2. tensorflow/api_template.__init__.py

    else:
      _module_dir = _module_util.get_parent_dir_for_name("keras.api._v2.keras")
    _current_module.__path__ = [_module_dir] + _current_module.__path__
    
    
    # Enable TF2 behaviors
    from tensorflow.python.compat import v2_compat as _compat
    _compat.enable_v2_behavior()
    _major_api_version = 2
    
    
    # Load all plugin libraries from site-packages/tensorflow-plugins if we are
    # running under pip.
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  3. tensorflow/__init__.py

    # must come from this module. So python adds these symbols for the
    # resolution to succeed.
    # pylint: disable=undefined-variable
    del python
    del core
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Sep 28 21:37:05 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  4. tests/test_compat.py

    
    @needs_pydanticv1
    def test_union_scalar_list():
        # For coverage
        # TODO: there might not be a current valid code path that uses this, it would
        # potentially enable query parameters defined as both a scalar and a list
        # but that would require more refactors, also not sure it's really useful
        from fastapi._compat import is_pv1_scalar_field
    
        field_info = FieldInfo()
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Sep 28 04:14:40 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  5. configure.py

          if ld_version_int is None:
            ld_version_int = convert_version_to_int(ld_version[4])
    
          # Enable if 'ld' version >= 2.35
          if ld_version_int >= 2035000:
            write_to_bazelrc(
                'build --copt="-DEIGEN_ALTIVEC_ENABLE_MMA_DYNAMIC_DISPATCH=1"')
    
      with_xla_support = environ_cp.get('TF_ENABLE_XLA', None)
      if with_xla_support is not None:
        write_to_bazelrc('build --define=with_xla_support=%s' %
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  6. tests/test_multi_query_errors.py

                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "five",
                    },
                    {
                        "type": "int_parsing",
                        "loc": ["query", "q", 1],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "six",
                    },
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_handling_errors/test_tutorial004.py

        )
        assert (
            # TODO: remove when deprecating Pydantic v1
            "value is not a valid integer" in response.text
            or "Input should be a valid integer, unable to parse string as an integer"
            in response.text
        )
    
    
    def test_get_http_error():
        response = client.get("/items/3")
        assert response.status_code == 418, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_dataclasses/test_tutorial001.py

            {
                "detail": [
                    {
                        "type": "float_parsing",
                        "loc": ["body", "price"],
                        "msg": "Input should be a valid number, unable to parse string as a number",
                        "input": "invalid price",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_body_multiple_params/test_tutorial001_py310.py

            {
                "detail": [
                    {
                        "type": "int_parsing",
                        "loc": ["path", "item_id"],
                        "msg": "Input should be a valid integer, unable to parse string as an integer",
                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  10. fastapi/openapi/docs.py

        -->
        <style>
          body {{
            margin: 0;
            padding: 0;
          }}
        </style>
        </head>
        <body>
        <noscript>
            ReDoc requires Javascript to function. Please enable it to browse the documentation.
        </noscript>
        <redoc spec-url="{openapi_url}"></redoc>
        <script src="{redoc_js_url}"> </script>
        </body>
        </html>
        """
        return HTMLResponse(html)
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 10.1K bytes
    - Viewed (0)
Back to top