Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for deletes (0.12 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

      return graph_def
    
    
    def create_empty_output_dir(
        output_directory: str, overwrite: bool = True
    ) -> None:
      """Creates the `output_directory`.
    
      If `output_directory` already exists, it recursively deletes all contents
      inside the directory.
    
      Also creates the parent & intermediate directories.
    
      Args:
        output_directory: Output directory.
        overwrite: Where to clean the output directory if exists.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. fastapi/openapi/constants.py

    METHODS_WITH_BODY = {"GET", "HEAD", "POST", "PUT", "DELETE", "PATCH"}
    REF_PREFIX = "#/components/schemas/"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 153 bytes
    - Viewed (0)
  3. tests/test_extra_routes.py

        return {"item_id": item_id}
    
    
    def get_not_decorated(item_id: str):
        return {"item_id": item_id}
    
    
    app.add_api_route("/items-not-decorated/{item_id}", get_not_decorated)
    
    
    @app.delete("/items/{item_id}")
    def delete_item(item_id: str, item: Item):
        return {"item_id": item_id, "item": item}
    
    
    @app.head("/items/{item_id}")
    def head_item(item_id: str):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. configure.py

    
    def reset_tf_configure_bazelrc():
      """Reset file that contains customized config settings."""
      open(_TF_BAZELRC, 'w').close()
    
    
    def cleanup_makefile():
      """Delete any leftover BUILD files from the Makefile build.
    
      These files could interfere with Bazel parsing.
      """
      makefile_download_dir = os.path.join(_TF_WORKSPACE_ROOT, 'tensorflow',
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  5. tensorflow/api_template.__init__.py

        importlib.import_module("tf_keras.src.optimizers")
      else:
        importlib.import_module("keras.src.optimizers")
    except (ImportError, AttributeError):
      pass
    
    del importlib
    
    # Delete modules that should be hidden from dir().
    # Don't fail if these modules are not available.
    # For e.g. this file will be originally placed under tensorflow/_api/v1 which
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 06:27:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. tests/test_reponse_set_reponse_code_empty.py

    app = FastAPI()
    
    
    @app.delete(
        "/{id}",
        status_code=204,
        response_model=None,
    )
    async def delete_deployment(
        id: int,
        response: Response,
    ) -> Any:
        response.status_code = 400
        return {"msg": "Status overwritten", "id": id}
    
    
    client = TestClient(app)
    
    
    def test_dependency_set_status_code():
        response = client.delete("/1")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. fastapi/applications.py

            Add a *path operation* using an HTTP DELETE operation.
    
            ## Example
    
            ```python
            from fastapi import FastAPI
    
            app = FastAPI()
    
            @app.delete("/items/{item_id}")
            def delete_item(item_id: str):
                return {"message": "Item deleted"}
            ```
            """
            return self.router.delete(
                path,
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  8. fastapi/routing.py

            """
            Add a *path operation* using an HTTP DELETE operation.
    
            ## Example
    
            ```python
            from fastapi import APIRouter, FastAPI
    
            app = FastAPI()
            router = APIRouter()
    
            @router.delete("/items/{item_id}")
            def delete_item(item_id: str):
                return {"message": "Item deleted"}
    
            app.include_router(router)
            ```
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  9. tensorflow/api_template_v1.__init__.py

          _ll.load_pluggable_device_library(_plugin_dir)
    
    if _os.getenv("TF_PLUGGABLE_DEVICE_LIBRARY_PATH", ""):
      _ll.load_pluggable_device_library(
          _os.getenv("TF_PLUGGABLE_DEVICE_LIBRARY_PATH")
      )
    
    # Delete modules that should be hidden from dir().
    # Don't fail if these modules are not available.
    # For e.g. this file will be originally placed under tensorflow/_api/v1 which
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. fastapi/openapi/models.py

        summary: Optional[str] = None
        description: Optional[str] = None
        get: Optional[Operation] = None
        put: Optional[Operation] = None
        post: Optional[Operation] = None
        delete: Optional[Operation] = None
        options: Optional[Operation] = None
        head: Optional[Operation] = None
        patch: Optional[Operation] = None
        trace: Optional[Operation] = None
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 22:49:33 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top