Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 747 for Device (0.18 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

    ParallelDevice::ParallelDevice(const std::vector<std::string>& devices,
                                   bool is_async, int in_flight_nodes_limit)
        : underlying_devices_(devices),
          default_cancellation_manager_(absl::make_unique<CancellationManager>()) {
      device_threads_.reserve(devices.size());
      for (int device_index = 0; device_index < devices.size(); ++device_index) {
        device_threads_.emplace_back(new DeviceThread(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  2. tensorflow/c/eager/c_api_experimental.h

    //
    // `device_name` must not name an existing physical or custom device. It must
    // follow the format:
    //
    //    /job:<name>/replica:<replica>/task:<task>/device:<type>:<device_num>
    //
    // If the device is successfully registered, `status` is set to TF_OK. Otherwise
    // the device is not usable. In case of a bad status, `device.delete_device` is
    // still called on `device_info` (i.e. the caller does not retain ownership).
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_context.h

      virtual bool UsesTFRT() = 0;
    
      // List attributes of available devices
      virtual void ListDevices(std::vector<DeviceAttributes>* devices) = 0;
    
      // Add `devices` into context's device manager. Context's device manager
      // will take ownership and maintain devices' lifetime.
      virtual Status AddDevices(std::vector<std::unique_ptr<Device>> devices) = 0;
    
      // Block until all pending nodes are finished.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 06 08:34:00 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/next_pluggable_device/c_api.h

    // C API for device. The API is under active development and eventually
    // should allow registering a plugin device with TensorFlow.
    
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // TF_Device is a C wrapper to the C++ TF Device class. This is to be passed
    // through TF_OpKernelContext, and is opaque to plugin.
    typedef struct TF_Device TF_Device;
    
    typedef struct TF_VariableInfo TF_VariableInfo;
    
    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)
  5. tensorflow/c/eager/c_api_test_util.cc

                          send_device.size());
      TFE_OpSetAttrString(op, "recv_device", recv_device.c_str(),
                          recv_device.size());
      TFE_OpSetAttrInt(op, "send_device_incarnation", send_device_incarnation);
    
      return op;
    }
    
    bool GetDeviceName(TFE_Context* ctx, string* device_name,
                       const char* device_type) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  6. tensorflow/c/eager/c_api.cc

                                  const char* device_name, void* device_info,
                                  TF_Status* status) {
      // Fill in default values for optional functionality.
      if (device.pack == nullptr) {
        device.pack = &DefaultCustomDevicePack;
      }
      auto custom_device = std::make_unique<tensorflow::CustomDeviceAPI>(
          ctx, device, device_info, device_name);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  7. tensorflow/c/eager/dlpack_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const DLTensor* dltensor_out = &dlm_out->dl_tensor;
      EXPECT_EQ(dltensor_out->device.device_type, dltensor_in->device.device_type);
      EXPECT_EQ(dltensor_out->device.device_id, dltensor_in->device.device_id);
      EXPECT_EQ(dltensor_out->ndim, dltensor_in->ndim);
      EXPECT_EQ(dltensor_out->dtype.code, dltensor_in->dtype.code);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 30 03:04:46 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

                                          DEVICE_CPU))));
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCApiClientIncorrectType) {
      TF_ASSERT_OK_AND_ASSIGN(
          auto pjrt_client,
          xla::GetTfrtCpuClient(/*asynchronous=*/true, /*cpu_device_count=*/1));
      TF_ASSERT_OK(SetPjRtClientInTFGlobalResourceManager(DEVICE_CPU,
                                                          std::move(pjrt_client)));
    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)
  9. tensorflow/c/eager/dlpack.cc

      DLDevice ctx;
      const char* device_name =
          tensorflow::unwrap(h)->BackingDeviceName(&status->status);
      DeviceNameUtils::ParsedName parsed_name;
      tensorflow::DeviceNameUtils::ParseFullName(device_name, &parsed_name);
      std::string device_type = parsed_name.type;
      int device_id = 0;
      if (parsed_name.has_id) {
        device_id = parsed_name.id;
      }
    
      ctx.device_id = device_id;
      if (device_type == "CPU") {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/BUILD

    # tensorflow/python:_pywrap_parallel_device.
    filegroup(
        name = "lib_headers",
        srcs = ["parallel_device_lib.h"],
    )
    
    filegroup(
        name = "lib_sources",
        srcs = ["parallel_device_lib.cc"],
    )
    
    filegroup(
        name = "device_headers",
        srcs = ["parallel_device.h"],
    )
    
    filegroup(
        name = "device_sources",
        srcs = ["parallel_device.cc"],
    )
    
    filegroup(
        name = "headers",
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 01 20:19:06 GMT 2024
    - 4.8K bytes
    - Viewed (0)
Back to top