Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for tensors (0.1 sec)

  1. docs_src/additional_status_codes/tutorial001_an_py39.py

    from typing import Annotated, Union
    
    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 705 bytes
    - Viewed (0)
  2. docs_src/additional_responses/tutorial003.py

            200: {
                "description": "Item requested by ID",
                "content": {
                    "application/json": {
                        "example": {"id": "bar", "value": "The bar tenders"}
                    }
                },
            },
        },
    )
    async def read_item(item_id: str):
        if item_id == "foo":
            return {"id": "foo", "value": "there goes my hero"}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 837 bytes
    - Viewed (0)
  3. docs_src/additional_status_codes/tutorial001_an.py

    from fastapi import Body, FastAPI, status
    from fastapi.responses import JSONResponse
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 734 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_additional_responses/test_tutorial003.py

                                        "example": {
                                            "id": "bar",
                                            "value": "The bar tenders",
                                        },
                                    }
                                },
                            },
                            "422": {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients_internal.h

                                     ForwardOperation*);
    absl::Status SetAttrTensor(AbstractOperation*, const char* attr_name,
                               AbstractTensorInterface* tensor, ForwardOperation*);
    absl::Status SetAttrStringList(AbstractOperation*, const char* attr_name,
                                   const void* const* values, const size_t* lengths,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        op_->node_builder.Attr(attr_name, func_name);
        return absl::OkStatus();
      }
      absl::Status SetAttrTensor(const char* attr_name,
                                 AbstractTensorInterface* tensor) override {
        return tensorflow::errors::Unimplemented(
            "SetAttrTensor has not been implemented yet.");
      }
      absl::Status SetAttrStringList(const char* attr_name,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/abstract_operation.h

                                               size_t length) = 0;
      virtual absl::Status SetAttrTensor(const char* attr_name,
                                         AbstractTensorInterface* tensor) = 0;
      virtual absl::Status SetAttrStringList(const char* attr_name,
                                             const void* const* values,
                                             const size_t* lengths,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. CITATION.cff

    operations that mutate that state. It maps the nodes of a dataflow graph across many machines in a cluster, and within a machine across multiple computational devices, including multicore CPUs, general purpose GPUs, and custom-designed ASICs known as Tensor Processing Units (TPUs). This architecture gives flexibility to the application developer, whereas in previous “parameter server” designs the management of shared state is built into the system, TensorFlow enables developers to experiment with novel...
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Sep 06 15:26:23 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  9. tensorflow/BUILD

            "//tensorflow/core:reader_base",
            "//tensorflow/core:script_ops_op_lib",
            "//tensorflow/distribute/experimental/rpc/kernels:rpc_ops",
            "//tensorflow/dtensor/cc:dtensor_device_cc",
            "//tensorflow/dtensor/cc:tensor_layout",
            "//tensorflow/lite/c:common",
            "//tensorflow/lite/core/api",
            "//tensorflow/lite/delegates/flex:delegate",
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Wed Oct 16 05:28:35 UTC 2024
    - 53.5K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_remote_test_util.cc

      TFE_TensorHandle* h0_task0 = TestMatrixTensorHandle(ctx);
      TFE_TensorHandle* h1_task0 = TestMatrixTensorHandle(ctx);
      std::vector<TFE_TensorHandle*> handles_task0;
      if (heavy_load_on_streaming_rpc) {
        // Send 50 tensor copy requests to simulate that there have been some RPC
        // requests been enqueued.
        for (int i = 0; i < 50; ++i) {
          handles_task0.push_back(TestMatrixTensorHandle(ctx));
        }
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
Back to top