Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for buffered (0.15 sec)

  1. tensorflow/c/c_api.cc

      }
      *result = TF_TensorFromTensor(**status_or, &status->status);
      return status->status.ok();
    }
    
    TF_ApiDefMap* TF_NewApiDefMap(TF_Buffer* op_list_buffer, TF_Status* status) {
      tensorflow::OpList op_list;
      if (!op_list.ParseFromArray(op_list_buffer->data, op_list_buffer->length)) {
        status->status = InvalidArgument("Unparseable OpList");
        return nullptr;
      }
      status->status = absl::OkStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_EQ(TF_GetCode(status_), TF_OUT_OF_RANGE) << TF_Message(status_);
      result.resize(read);
      ASSERT_EQ(result, "6789") << "Result: " << result << "\n";
    }
    
    TEST_F(GCSFilesystemTest, NewRandomAccessFile_Buffered) {
      tf_gcs_filesystem::InitTest(filesystem_, false, 10, 0, 0, 0, 0, status_);
      ASSERT_TF_OK(status_) << "Could not initialize filesystem. "
                            << TF_Message(status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      // functions, and their send/recvs corountines).
      config.set_inter_op_parallelism_threads(1);
    
      TF_Buffer* ret = TF_NewBuffer();
      TF_CHECK_OK(MessageToBuffer(config, ret));
      return ret;
    }
    
    TF_Buffer* TF_CreateRunOptions(unsigned char enable_full_trace) {
      tensorflow::RunOptions options;
      if (enable_full_trace) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*xla*/ false,
              /* gpu_memory_allow_growth */ true, /* num_cpu_devices */
              2),
          TF_DeleteBuffer);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      delete posix_file;
    }
    
    static int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n,
                        char* buffer, TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      char* dst = buffer;
      int64_t read = 0;
    
      while (n > 0) {
        // Some platforms, notably macs, throw `EINVAL` if `pread` is asked to read
        // more than fits in a 32-bit integer.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      av_tensor->SetBuffer(std::move(buffer));
    
      TF_ASSERT_OK_AND_ASSIGN(auto c_buffer, GetPjRtCBufferFromTensor(&tensor));
    
      EXPECT_THAT(c_buffer, NotNull());
    }
    
    TEST(TensorPjRtBufferUtilTest, SetPjRtCBufferToTensorNotAsyncValueTensor) {
      tensorflow::Tensor tensor(DT_FLOAT, {1});
      TF_ASSERT_OK_AND_ASSIGN(auto pjrt_client, xla::GetCApiClient(DEVICE_CPU));
      PJRT_Buffer* c_buffer = CreateCBuffer();
    
    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)
  7. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    }
    
    PJRT_Buffer* TF_GetPjRtCBuffer(TF_Tensor* c_tensor, TF_Status* status) {
      tensorflow::Tensor tensor;
      auto s = tensorflow::TF_TensorToTensor(c_tensor, &tensor);
      if (!s.ok()) {
        status->status = s;
        return nullptr;
      }
      absl::StatusOr<PJRT_Buffer*> c_buffer =
          tensorflow::GetPjRtCBufferFromTensor(&tensor);
      if (!c_buffer.ok()) {
        status->status = c_buffer.status();
    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)
  8. tensorflow/c/experimental/grappler/grappler_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace grappler {
    namespace {
    
    void optimize_func(void* optimizer, const TF_Buffer* graph_buf,
                       const TF_GrapplerItem* item, TF_Buffer* optimized_graph_buf,
                       TF_Status* tf_status) {}
    
    void PopulateDefaultParam(TP_OptimizerRegistrationParams* params) {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_test.cc

          TF_NewStatus(), TF_DeleteStatus);
      std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts(
          TFE_NewContextOptions(), TFE_DeleteContextOptions);
      std::unique_ptr<TF_Buffer, decltype(&TF_DeleteBuffer)> config(
          TF_CreateConfig(
              /*enable_xla_compilation=*/false,
              /*gpu_memory_allow_growth=*/true, /*num_cpu_devices=*/2),
          TF_DeleteBuffer);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_function.cc

    #include <algorithm>
    #include <unordered_map>
    #include <unordered_set>
    #include <utility>
    
    #include "absl/strings/match.h"
    #include "tensorflow/c/c_api_internal.h"
    #include "tensorflow/c/tf_buffer_internal.h"
    #include "tensorflow/core/framework/attr_value_util.h"
    #include "tensorflow/core/framework/function.h"
    #include "tensorflow/core/framework/function.pb.h"
    #include "tensorflow/core/framework/graph_to_functiondef.h"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
Back to top