Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for _C (0.15 sec)

  1. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

    #include <optional>
    #include <utility>
    #include <vector>
    
    #include <gtest/gtest.h>
    #include "absl/log/check.h"
    #include "xla/pjrt/c/pjrt_c_api.h"
    #include "xla/pjrt/c/pjrt_c_api_cpu.h"
    #include "xla/pjrt/c/pjrt_c_api_wrapper_impl.h"
    #include "xla/pjrt/pjrt_api.h"
    #include "xla/pjrt/pjrt_c_api_client.h"
    #include "xla/pjrt/tfrt_cpu_pjrt_client.h"
    #include "xla/shape.h"
    #include "xla/shape_util.h"
    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)
  2. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      absl::StatusOr<xla::PjRtCApiClient*> pjrt_c_api_client =
          tensorflow::GetPjRtCApiClient(tensorflow::DeviceType(device_type));
      if (!pjrt_c_api_client.ok()) {
        status->status = pjrt_c_api_client.status();
        return nullptr;
      }
      status->status = absl::OkStatus();
      return (*pjrt_c_api_client)->pjrt_c_client();
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc

      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(),
                                                " is not type PjRtCApiClient"));
      }
      return pjrt_c_api_client;
    }
    
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      if (TF_GetCode(status) != TF_OK) return;
    
      auto gcs_file = static_cast<GCSFile*>(filesystem->plugin_filesystem);
      char* temp_file_name_c_str = TF_GetTempFileName("");
      std::string temp_file_name(temp_file_name_c_str);  // To prevent memory-leak
      free(temp_file_name_c_str);
    
      if (!gcs_file->compose) {
        auto gcs_status =
            gcs_file->gcs_client.DownloadToFile(bucket, object, temp_file_name);
    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)
  5. tensorflow/c/c_api_test.cc

      bool deallocator_called = false;
      TF_Tensor* t_c = TF_NewTensor(TF_FLOAT, dims, 2, values, num_bytes,
                                    &Deallocator, &deallocator_called);
    
      TF_Status* status = TF_NewStatus();
      TF_TensorFromProto(t_buffer, t_c, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      EXPECT_EQ(1.0, *(static_cast<float*>(TF_TensorData(t_c))));
      TF_DeleteStatus(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top