Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for dev0 (0.21 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      const char dev0_name[] = "/job:localhost/replica:0/task:0/device:CPU:0";
      const char dev1_name[] = "/job:localhost/replica:0/task:1/device:CPU:0";
    
      TFE_TensorHandle* var_handle0 = TestVariable(ctx, 1.0, dev0_name);
      EXPECT_NE(var_handle0, nullptr);
      TFE_TensorHandle* var_handle1 = TestVariable(ctx, 2.0, dev1_name);
      EXPECT_NE(var_handle1, nullptr);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_debug.cc

      status->status = handle->Tensor(&tensor);
      if (!status->status.ok()) {
        return nullptr;
      }
    
      std::vector<int64_t> dev_dims = TensorShapeAsVector(*handle, &status->status);
      if (!status->status.ok()) {
        return nullptr;
      }
      return new TFE_TensorDebugInfo(dev_dims);
    }
    
    TF_CAPI_EXPORT extern void TFE_DeleteTensorDebugInfo(
        TFE_TensorDebugInfo* debug_info) {
      delete debug_info;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

      bool has_gpu0 = false;
      bool has_gpu1 = false;
      for (int i = 0; i < num_devices; ++i) {
        const char* dev = TF_DeviceListName(devices, i, status.get());
        ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
        string device_name(dev);
        if (device_name.find("GPU:0") != string::npos) {
          has_gpu0 = true;
        }
        if (device_name.find("GPU:1") != string::npos) {
    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)
  4. tensorflow/c/eager/custom_device_testutil.cc

      LoggingDevice* dev = reinterpret_cast<LoggingDevice*>(device_info);
      TFE_TensorHandle* t = TFE_TensorHandleCopyToDevice(
          tensor, context, dev->underlying_device.c_str(), status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      auto dst = std::make_unique<LoggedTensor>(t);
      *(dev->arrived_flag) = true;
      return MakeLoggedTensorHandle(context, dev->device_name, std::move(dst),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_distributed_test.cc

                      .ok());
      ASSERT_TRUE(worker_server2->Start().ok());
      const char dev2_name[] = "/job:localhost/replica:0/task:2/device:CPU:0";
    
      if (inject_error) {
        // Inject a function optimization pass failure when it sees the
        // 'read0_maybe_with_graph_error' op having a requested device `dev2_name`.
        // During execution:
        //   * task:0 processes main function `VariableAddFunctionWithGraphError`
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.cc

      for (int i = 0; i < num_devices; ++i) {
        const string dev_type(TF_DeviceListType(devices, i, status.get()));
        CHECK_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        const string dev_name(TF_DeviceListName(devices, i, status.get()));
        CHECK_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        if (dev_type == device_type) {
          *device_name = dev_name;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
Back to top