Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 764 for SELF (0.06 sec)

  1. tensorflow/c/experimental/saved_model/internal/testdata/gen_saved_models.py

        def __init__(self):
          self.uninitialized_variable = resource_variable_ops.UninitializedVariable(
              name="uninitialized_variable", dtype=dtypes.int64)
    
      class Module(module.Module):
        """A module with an UninitializedVariable."""
    
        def __init__(self):
          super(Module, self).__init__()
          self.sub_module = SubModule()
          self.initialized_variable = variables.Variable(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 06 21:32:57 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. fastapi/security/api_key.py

                    """
                ),
            ] = True,
        ):
            self.model: APIKey = APIKey(
                **{"in": APIKeyIn.query},  # type: ignore[arg-type]
                name=name,
                description=description,
            )
            self.scheme_name = scheme_name or self.__class__.__name__
            self.auto_error = auto_error
    
        async def __call__(self, request: Request) -> Optional[str]:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 23 22:29:18 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial011_an_py39.py

    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 544 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/cyclic_object_graph.py

      def __init__(self, parent):
        super(ReferencesParent, self).__init__()
        self.parent = parent
        # CHECK: tf_saved_model.global_tensor
        # CHECK-SAME: tf_saved_model.exported_names = ["child.my_variable"]
        self.my_variable = tf.Variable(3.)
    
    
    # Creates a cyclic object graph.
    class TestModule(tf.Module):
    
      def __init__(self):
        super(TestModule, self).__init__()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  5. docs_src/websockets/tutorial003_py39.py

    """
    
    
    class ConnectionManager:
        def __init__(self):
            self.active_connections: list[WebSocket] = []
    
        async def connect(self, websocket: WebSocket):
            await websocket.accept()
            self.active_connections.append(websocket)
    
        def disconnect(self, websocket: WebSocket):
            self.active_connections.remove(websocket)
    
        async def send_personal_message(self, message: str, websocket: WebSocket):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/call_to_exported.py

      # CHECK-NOT:    tf_saved_model.exported_names
    
      @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
      def callee(self, x):
        return x, self.v
    
      @tf.function(input_signature=[tf.TensorSpec([], tf.float32)])
      def caller(self, x):
        return self.callee(x)
    
    
    if __name__ == '__main__':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 28 19:09:38 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. docs_src/dependencies/tutorial004.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends()):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 639 bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_ops_test.py

            'dilation_h': 1,
            'padding': 'SAME',
            'act': 'RELU6'
        }
    
        self._assertOpAndComposite([input_, filter_, bias],
                                   tf.function(gen_mnist_ops.new_conv2d),
                                   ops_defs._composite_conv_add_relu, kwargs)
    
      def test_new_conv2d_tanh(self):
        self.skipTest('Fix tanh gradients')
        input_ = tf.random.uniform([1, 4, 4, 1])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 4K bytes
    - Viewed (0)
  9. docs_src/dependencies/tutorial002.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 656 bytes
    - Viewed (0)
  10. docs_src/dependencies/tutorial004_an_py39.py

    app = FastAPI()
    
    
    fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}]
    
    
    class CommonQueryParams:
        def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100):
            self.q = q
            self.skip = skip
            self.limit = limit
    
    
    @app.get("/items/")
    async def read_items(commons: Annotated[CommonQueryParams, Depends()]):
        response = {}
        if commons.q:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 660 bytes
    - Viewed (0)
Back to top