Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for stream (0.23 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.cc

    #include <stdio.h>
    
    #include <fstream>
    #include <string>
    #include <utility>
    
    TempFile::TempFile(const std::string& temp_file_name, std::ios::openmode mode)
        : std::fstream(temp_file_name, mode), name_(temp_file_name) {}
    
    TempFile::TempFile(TempFile&& rhs)
        : std::fstream(std::move(rhs)), name_(std::move(rhs.name_)) {}
    
    TempFile::~TempFile() {
      std::fstream::close();
      std::remove(name_.c_str());
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      if (TF_GetCode(status) != TF_OK) return -1;
      auto stream = gcs_file->gcs_client.ReadObject(
          bucket, object, gcs::ReadRange(offset, offset + buffer_size));
      TF_SetStatusFromGCSStatus(stream.status(), status);
      if ((TF_GetCode(status) != TF_OK) &&
          (TF_GetCode(status) != TF_OUT_OF_RANGE)) {
        return -1;
      }
      int64_t read;
      auto content_length = stream.headers().find("content-length");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental_test.cc

      // Load the library.
      TF_Status* status = TF_NewStatus();
      string lib_path =
          tensorflow::GetDataDependencyFilepath(tensorflow::io::JoinPath(
              "tensorflow", "c", "experimental", "stream_executor", "test",
              "test_pluggable_device.so"));
      TF_Library* lib = TF_LoadPluggableDeviceLibrary(lib_path.c_str(), status);
      TF_Code code = TF_GetCode(status);
      string status_msg(TF_Message(status));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      auto allocator = std::make_unique<AsyncValueAllocator>();
      tensorflow::Tensor tensor(allocator.get(), DT_FLOAT, {1});
    
      EXPECT_THAT(
          GetPjRtCBufferFromTensor(&tensor),
          StatusIs(error::INTERNAL, HasSubstr(absl::StrCat(
                                        "Input tensor does not have PjRtBuffer"))));
    }
    
    TEST(TensorPjRtBufferUtilTest, GetPjRtCBufferFromTensorIncoorectType) {
      auto allocator = std::make_unique<AsyncValueAllocator>();
    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)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

        // Special-cased operation for packing per-device tensors into one parallel
        // tensor.
        if (inputs.size() != parallel_device.num_underlying_devices()) {
          std::string message(absl::StrCat(
              "The parallel device ", parallel_device_name, " expected ",
              parallel_device.num_underlying_devices(),
              " inputs to TPUReplicatedInput, but got ", inputs.size()));
    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)
  6. tensorflow/c/eager/abstract_tensor_handle.cc

      Status s = Shape(&shape);
      std::string shape_string;
      if (!s.ok()) {
        shape_string = "<error computing shape>";
      } else {
        shape_string = shape.DebugString();
      }
      return absl::StrCat("TensorHandle(shape=", shape_string,
                          ", dtype=", DataType_Name(DataType()),
                          ", type=", FullType().DebugString(), ")");
    }
    
    Status AbstractTensorHandle::TensorHandleStatus() const {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      std::vector<std::string> local_names;
      local_names.reserve(underlying_devices_.size());
      for (const DeviceNameUtils::ParsedName& parsed_component :
           parsed_components) {
        local_names.push_back(
            absl::StrCat(parsed_component.type, ":", parsed_component.id));
      }
      return local_names;
    }
    
    std::unique_ptr<ParallelTensor> ParallelTensor::FromTensorHandles(
        const ParallelDevice& parallel_device,
    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)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      const tensorflow::Tensor& arg_tensor = cc_ctx->input(index);
      absl::Status cc_status;
      if (arg_tensor.dtype() != tensorflow::DT_RESOURCE) {
        cc_status = absl::InvalidArgumentError(
            absl::StrCat("Trying to obtain resource handle from Input[", index,
                         "], which is not type DT_RESOURCE."));
        status->status = cc_status;
        return nullptr;
      }
      const tensorflow::ResourceHandle& handle =
    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)
  9. tensorflow/c/c_api_function.cc

    #include "tensorflow/core/framework/tensor.pb.h"  // NOLINT
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/platform/base64.h"
    #include "tensorflow/core/platform/strcat.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    
    using tensorflow::errors::InvalidArgument;
    
    namespace tensorflow {
    namespace {
    
    Status ValidateNonRefOutput(const Node* node, int idx) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

    ==============================================================================*/
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h"
    
    #include <cstring>
    #include <memory>
    #include <sstream>
    #include <utility>
    
    #include "absl/synchronization/mutex.h"
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/cleanup.h"
    
    namespace tf_gcs_filesystem {
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
Back to top