Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for __iter__ (0.39 sec)

  1. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ///
    
    In Python, you can create Context Managers by <a href="https://docs.python.org/3/reference/datamodel.html#context-managers" class="external-link" target="_blank">creating a class with two methods: `__enter__()` and `__exit__()`</a>.
    
    You can also use them inside of **FastAPI** dependencies with `yield` by using
    `with` or `async with` statements inside of the dependency function:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. RELEASE.md

            files.
    *   Eager Execution:
        *   With eager execution Datasets can now be used as standard python
            iterators (`for batch in dataset:`). Both `Dataset.__iter__()` and
            `Dataset.make_one_shot_iterator()` can now be used to create iterators
            when eager execution is enabled.
        *   Automatic device placement has been enabled (i.e., use a GPU if
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Aug 18 20:54:38 UTC 2025
    - 740K bytes
    - Viewed (2)
Back to top