Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Storage (0.17 sec)

  1. tensorflow/c/c_api.cc

      char* p = static_cast<char*>(storage);
      for (int i = 0; i < len; ++i) {
        const string& s = attr->list().s(i);
        values[i] = p;
        lengths[i] = s.size();
        if ((p + s.size()) > (static_cast<char*>(storage) + storage_size)) {
          status->status = InvalidArgument(
              "Not enough storage to hold the requested list of strings");
          return;
        }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/grappler/grappler.cc

                                       size_t* storage_size, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      const std::unordered_set<std::string>& nodes =
          reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item)
              ->NodesToPreserve();
      *num_values = nodes.size();
      *storage_size = 0;
      for (const std::string& str : nodes) {
        *storage_size += str.size();
      }
    }
    
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/grappler/grappler_test.cc

      std::unique_ptr<size_t[]> lens(new size_t[nodes_preserved.size()]);
      std::unique_ptr<char[]> storage(new char[storage_size]);
      TF_GetNodesToPreserveList(c_item, values.get(), lens.get(),
                                nodes_preserved.size(), storage.get(), storage_size,
                                status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (size_t i = 0; i < nodes_preserved.size(); ++i) {
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    #include "absl/types/variant.h"
    #include "google/cloud/storage/client.h"
    #include "tensorflow/c/env.h"
    #include "tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.h"
    #include "tensorflow/c/logging.h"
    #include "tensorflow/c/tf_status.h"
    
    // Implementation of a filesystem for GCS environments.
    // This filesystem will support `gs://` URI schemes.
    namespace gcs = google::cloud::storage;
    
    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)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

    static const char* content = "abcdefghijklmnopqrstuvwxyz1234567890";
    // We will work with content_view instead of content.
    static const absl::string_view content_view = content;
    
    namespace gcs = google::cloud::storage;
    
    static std::string InitializeTmpDir() {
      // This env should be something like `gs://bucket/path`
      const char* test_dir = getenv("GCS_TEST_TMPDIR");
      if (test_dir != nullptr) {
        std::string bucket, object;
    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)
  6. tensorflow/c/c_api_test.cc

        std::vector<size_t> lens(expected.size());
        std::unique_ptr<char[]> storage(new char[m.total_size]);
        TF_OperationGetAttrStringList(op, tensorflow::kColocationAttrName,
                                      values.data(), lens.data(), expected.size(),
                                      storage.get(), m.total_size, s_);
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top