Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for client (0.23 sec)

  1. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.h

    #include "xla/pjrt/c/pjrt_c_api.h"
    #include "xla/pjrt/pjrt_c_api_client.h"
    #include "tensorflow/core/framework/tensor.h"
    
    namespace tensorflow {
    
    StatusOr<PJRT_Buffer*> GetPjRtCBufferFromTensor(const Tensor* tensor);
    
    absl::Status SetPjRtCBufferToTensor(PJRT_Buffer* c_buffer,
                                        xla::PjRtCApiClient* c_api_client,
                                        Tensor* tensor);
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 09 19:12:59 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_test.cc

      // A single host server def contains a client and the remote host.
      // Example:
      //
      //  Worker1:
      //  cluster { job { name: "client" tasks { key: 0 value: "localhost:14525" } }
      //            job { name: "worker" tasks { key: 1 value: "localhost:14523" } }
      //          } job_name: "worker" task_index: 1 protocol: "grpc"
      //
      //  Worker0:
      //  cluster { job { name: "client" tasks { key: 0 value: "localhost:14526" } }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api_experimental_test.cc

      TFE_Context* ctx = TFE_NewContext(opts, status);
      EXPECT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status);
    
      server_def.set_task_index(0);
      auto cluster = server_def.mutable_cluster();
      auto client_job = cluster->add_job();
      client_job->set_name("localhost");
      int client_port = tensorflow::testing::PickUnusedPortOrDie();
      client_job->mutable_tasks()->insert(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

    absl::StatusOr<xla::PjRtCApiClient*> GetPjRtCApiClient(
        const DeviceType& device_type) {
      TF_ASSIGN_OR_RETURN(tsl::StatusOr<xla::PjRtClient*> pjrt_client,
                          tensorflow::GetPjRtClient(device_type));
      auto* pjrt_c_api_client = dynamic_cast<xla::PjRtCApiClient*>(*pjrt_client);
      if (pjrt_c_api_client == nullptr) {
        return absl::InternalError(absl::StrCat("PjRtClient for ",
                                                device_type.type_string(),
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                  TF_Status* status) {
      google::cloud::StatusOr<gcs::Client> client =
          gcs::Client::CreateDefaultClient();
      if (!client) {
        TF_SetStatusFromGCSStatus(client.status(), status);
        return;
      }
    
      filesystem->plugin_filesystem =
          new GCSFile(std::move(client.value()), compose, block_size, max_bytes,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/immediate_execution_distributed_manager.h

                                                int keep_alive_secs) = 0;
    
      // Set up a multi-client distributed execution environment. Must be called
      // on all tasks in the cluster. This call internally coordinates with other
      // tasks to initialize the eager context and TF server for multi-client
      // execution.
      virtual Status EnableCollectiveOps(const ServerDef& server_def) = 0;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental.h

    // Stores a function representation that can be used for execution or for
    // setting functional attributes of other composite ops e.g. control flow.
    typedef struct TF_AbstractFunction TF_AbstractFunction;
    
    // This allows the client to swap the implementation of the tracing engine.
    // Any future call to TF_CreateFunction will use the implementation defined
    // here.
    void TF_SetTracingImplementation(const char* name, TF_Status*);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:00 GMT 2021
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.h

        int num_options);
    
    // Resets the PjRt client for a device. After this, `TF_GetPjRtCClient` will
    // returns an error for that device.
    TF_CAPI_EXPORT extern void TF_ResetPjRtCClient(const char* device_type,
                                                   TF_Status* status);
    
    // Gets the `PJRT_Client*` stored in TF global ResourceManager.
    TF_CAPI_EXPORT extern PJRT_Client* TF_GetPjRtCClient(const char* device_type,
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Dec 20 20:01:06 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/next_pluggable_device/BUILD

            "@com_google_absl//absl/types:span",
            "@local_tsl//tsl/distributed_runtime/coordination:coordination_service_agent",
            "@local_xla//xla/pjrt:pjrt_c_api_client",
            "@local_xla//xla/pjrt:pjrt_client",
            "@local_xla//xla/pjrt/c:pjrt_c_api_hdrs",
            "@local_xla//xla/pjrt/c:pjrt_c_api_helpers",
        ],
    )
    
    # Plugin should include this target to avoid linking the C API implementation.
    Plain Text
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

        CHECK_OK(pjrt::SetPjrtApi(DEVICE_CPU, GetPjrtApi()));
      }
      auto pjrt_client = xla::GetCApiClient(DEVICE_CPU);
      CHECK_OK(pjrt_client.status());
      auto c_api_client = down_cast<xla::PjRtCApiClient*>(pjrt_client->get());
      std::vector<int32_t> data(1, 0);
      xla::Shape shape = xla::ShapeUtil::MakeShape(xla::S32, {1});
    
      auto buffer = c_api_client->pjrt_c_client()->client->BufferFromHostBuffer(
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
Back to top