Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for components (0.3 sec)

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

        std::array<TensorHandlePtr, 2> out_components;
        ExtractPerDeviceValues(context.get(), multiply_result.get(),
                               &out_components, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
        ExpectScalarEq<float>(out_components[0].get(), 9.);
        ExpectScalarEq<float>(out_components[1].get(), 4.);
      }
    
      worker_server1.release();
    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)
  2. tensorflow/c/eager/immediate_execution_tensor_handle.h

      //
      // -1 indicates an unknown axis length; this is unreachable for most standard
      // ImmediateExecutionTensorHandles, but comes up for example when computing
      // the shape of a parallel tensor with component shapes differing across
      // devices.
      virtual Status Dim(int dim_index, int64_t* dim) const = 0;
    
      // Returns the device which created the handle.
      virtual const char* DeviceName(Status* status) const = 0;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Mar 10 21:56:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // Furthermore, since each test creates and deletes files, we will use the same
    // fixture to create new directories in `SetUp`. Each directory will reside in
    // `::testing::TempDir()`, will use a RNG component and the test name. This
    // ensures that two consecutive runs are unlikely to clash.
    class ModularFileSystemTest : public ::testing::TestWithParam<std::string> {
     public:
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. ci/devinfra/docker_windows/Dockerfile

            "--quiet", "--wait", "--nocache", \
            "--add", "Microsoft.VisualStudio.Workload.VCTools", \
            "--add", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", \
            "--add", "Microsoft.VisualStudio.Component.Windows10SDK.19041" -Wait; \
        Start-Process -FilePath C:/TEMP/vs_buildtools.exe -ArgumentList "--installPath", "C:/VS", \
            "--quiet", "--wait", "--nocache", "--includeOptional", \
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Aug 18 17:24:20 GMT 2023
    - 13.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      TFE_TensorHandleGetStatus(components[0].get(), status);
      if (!status->status.ok()) {
        return nullptr;
      }
    
      TF_DataType dtype = TFE_TensorHandleDataType(components[0].get());
      // Verify that the combined TensorHandle's dtype matches all of the component
      // dtypes.
      for (TensorHandlePtr& component : components) {
        TFE_TensorHandleGetStatus(component.get(), status);
        if (!status->status.ok()) {
          return nullptr;
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      components[0] = negative_one_cpu.get();
      components[1] = negative_one_cpu.get();
      TensorHandlePtr first_negative_one = CreatePerDeviceValues(
          context.get(), components, first_device_name, status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      components[0] = first_negative_one.get();
      components[1] = negative_one_cpu.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)
  7. tensorflow/c/eager/parallel_device/parallel_device_testlib.cc

        std::array<TensorHandlePtr, 2> components;
        ExtractPerDeviceValues(context, read.get(), &components, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
        ExpectScalarEq<float>(components[0].get(), 20.);
        ExpectScalarEq<float>(components[1].get(), 20.);
    
        std::string first_device =
            TFE_TensorHandleBackingDeviceName(components[0].get(), 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_lib.h

     public:
      // Construct a ParallelTensor from TensorHandles placed on the component
      // devices of a ParallelDevice. If called, ParallelTensor::Shape inspects
      // `components` to determine a shape.
      static std::unique_ptr<ParallelTensor> FromTensorHandles(
          const ParallelDevice& parallel_device,
          std::vector<TensorHandlePtr> components, TF_Status* status);
    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)
  9. tensorflow/c/eager/parallel_device/parallel_device.h

    // two component devices, running `x = TPUReplicatedInput(inputs=[a, b])` on the
    // parallel device creates a parallel tensor `x` with `a` on the first of
    // `underlying_devices` and `b` on the second. Running `a_unpacked, b_unpacked =
    // TPUReplicatedOutput(input=x, num_replicas=2)` un-packs the parallel tensor
    // into its components.
    //
    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)
  10. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

        std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status);
    
    // Helper to pack `num_replicas` TFE_TensorHandles into one parallel handle.
    template <std::size_t num_replicas>
    TensorHandlePtr CreatePerDeviceValues(
        TFE_Context* context,
        const std::array<TFE_TensorHandle*, num_replicas>& components,
        const char* device, TF_Status* 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)
Back to top