Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1151 - 1160 of 1,170 for def2 (0.07 sec)

  1. docs/pt/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    A contra-parte da aplicação FastAPI, *rota de operação*, poderia parecer como:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Veja as similaridades em `requests.get(...)` e `@app.get(...)`.
    
    /// check | "**FastAPI** inspirado para"
    
    * Ter uma API simples e intuitiva.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. docs/zh/docs/tutorial/bigger-applications.md

    ```Python hl_lines="5-10  16  21" title="app/routers/items.py"
    {!../../docs_src/bigger_applications/app/routers/items.py!}
    ```
    
    由于每个*路径操作*的路径都必须以 `/` 开头,例如:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...前缀不能以 `/` 作为结尾。
    
    因此,本例中的前缀为 `/items`。
    
    我们还可以添加一个 `tags` 列表和额外的 `responses` 列表,这些参数将应用于此路由器中包含的所有*路径操作*。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.h

        TFE_Context* ctx, int keep_alive_secs, const void* proto, size_t proto_len,
        int64_t init_timeout_in_ms, TF_Status* status,
        bool clear_existing_contexts);
    
    // Set server def with retries and timeout. This is helpful for fault-tolerant
    // initial connection in high-preemption environments, such as
    // ParameterServerStrategy training.
    // This API is for experimental usage and may be subject to change.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  4. docs/de/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    Die entsprechende *Pfadoperation* der FastAPI-API könnte wie folgt aussehen:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Sehen Sie sich die Ähnlichkeiten in `requests.get(...)` und `@app.get(...)` an.
    
    /// check | "Inspirierte **FastAPI**"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  5. docs/ja/docs/deployment/docker.md

    * `main.py` ファイルを作成します:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    同じプロジェクト・ディレクトリに`Dockerfile`というファイルを作成します:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_test.cc

          feed3, control_inputs, TF_OperationNumControlInputs(feed3));
      ASSERT_EQ(2, num_control_inputs);
      EXPECT_EQ(feed, control_inputs[0]);
      EXPECT_EQ(feed2, control_inputs[1]);
    
      // Export to a graph def so we can import a graph with control dependencies
      TF_DeleteBuffer(graph_def);
      graph_def = TF_NewBuffer();
      TF_GraphToGraphDef(graph, graph_def, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    					return p.hasPointer(f, ts.Type, top)
    				}
    			}
    		}
    		if def := typedef[t.Name]; def != nil {
    			return p.hasPointer(f, def.Go, top)
    		}
    		if t.Name == "string" {
    			return !top
    		}
    		if t.Name == "error" {
    			return true
    		}
    		if goTypes[t.Name] != nil {
    			return false
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    	switch word {
    	case "TEXT":
    		// Defines text symbol in operands[0].
    		if len(operands) > 0 {
    			p.start(operands[0])
    			if name, abi, ok := p.funcAddress(); ok {
    				fmt.Fprintf(w, "def %s %s\n", name, abi)
    			}
    		}
    		return
    	case "GLOBL", "PCDATA":
    		// No text definitions or symbol references.
    	case "DATA", "FUNCDATA":
    		// For DATA, operands[0] is defined symbol.
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 04 18:16:59 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. api/go1.5.txt

    pkg go/types, type Func struct
    pkg go/types, type Importer interface { Import }
    pkg go/types, type Importer interface, Import(string) (*Package, error)
    pkg go/types, type Info struct
    pkg go/types, type Info struct, Defs map[*ast.Ident]Object
    pkg go/types, type Info struct, Implicits map[ast.Node]Object
    pkg go/types, type Info struct, InitOrder []*Initializer
    pkg go/types, type Info struct, Scopes map[ast.Node]*Scope
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  10. tensorflow/c/c_api.h

    // Fetches any input mappings requested via
    // TF_ImportGraphDefOptionsAddInputMapping() that didn't appear in the GraphDef
    // and weren't used as input to any node in the imported graph def. The number
    // of fetched mappings is returned in `num_missing_unused_input_mappings`. The
    // array of each mapping's source node name is returned in `src_names`, and the
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
Back to top