Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for underlying_devices (0.23 sec)

  1. tensorflow/c/eager/parallel_device/parallel_device.h

    namespace parallel_device {
    
    // Allocate a parallel device named `device_name` which forwards operations to
    // `underlying_devices`, maintaining "parallel tensors" with components placed
    // on each underlying device.
    //
    // For example if `device_name` is
    //   "/job:localhost/replica:0/task:0/device:CUSTOM:0"
    // and `underlying_devices` is
    //   {"/job:localhost/replica:0/task:0/device:GPU:0",
    //    "/job:localhost/replica:0/task:0/device:GPU:1"}
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jun 04 21:49:16 GMT 2020
    - 2.9K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      const char* second_device_name =
          "/job:localhost/replica:0/task:0/device:CPU:1";
      std::array<const char*, 2> underlying_devices{first_device_name,
                                                    second_device_name};
      RegisterParallelDevice(context.get(), device_name, underlying_devices,
                             status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  3. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          underlying_devices_.size());
      for (int component_index = 0; component_index < underlying_devices_.size();
           ++component_index) {
        if (!DeviceNameUtils::ParseFullName(underlying_devices_[component_index],
                                            &parsed_components[component_index]) ||
            !DeviceNameUtils::IsSameAddressSpace(
                underlying_devices_[component_index], underlying_devices_[0])) {
    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)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

      std::vector<std::string> underlying_devices_vector;
      underlying_devices_vector.reserve(num_underlying_devices);
      for (int device_index = 0; device_index < num_underlying_devices;
           ++device_index) {
        underlying_devices_vector.push_back(underlying_devices[device_index]);
      }
      std::unique_ptr<ParallelDevice> parallel_device(
          new ParallelDevice(underlying_devices_vector));
      *device_info =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.h

                                                TF_Status* status) const;
    
      // The number of devices operations run on.
      size_t num_underlying_devices() const { return underlying_devices_.size(); }
    
      // The devices operations run on.
      const std::vector<std::string>& underlying_devices() const {
        return underlying_devices_;
      }
    
      // Takes a description of a single operation being executed on the
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

        TFE_Context* context, const char* device_name,
        const std::array<const char*, num_devices>& underlying_devices,
        TF_Status* status) {
      TFE_CustomDevice device;
      void* device_info;
      tensorflow::parallel_device::AllocateParallelDevice(
          device_name, underlying_devices.data(), underlying_devices.size(),
          &device, &device_info);
      TFE_RegisterCustomDevice(context, device, device_name, device_info, status);
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

          TF_NewStatus(), TF_DeleteStatus);
      const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      std::array<const char*, 2> underlying_devices{first_device, second_device};
      RegisterParallelDevice(context, device_name, underlying_devices,
                             status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jun 15 15:44:44 GMT 2021
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      const char* device_name = "/job:localhost/replica:0/task:0/device:CUSTOM:0";
      std::array<const char*, 2> underlying_devices{first_device, second_device};
      RegisterParallelDevice(context.get(), device_name, underlying_devices,
                             status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top