Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for new (0.2 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      const std::string filepath = GetURIForPath("a_file");
      std::unique_ptr<WritableFile> new_file;
      Status status = env_->NewWritableFile(filepath, &new_file);
      if (!status.ok())
        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      const std::string new_filepath = GetURIForPath("a_new_file");
      status = env_->RenameFile(filepath, new_filepath);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  2. tensorflow/c/checkpoint_reader.cc

        v2_reader_.reset(
            new BundleReader(Env::Default(), filename /* prefix to a V2 ckpt */));
        if (!v2_reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, v2_reader_->status());
          return;
        }
        auto result = BuildV2VarMaps();
        var_to_shape_map_.swap(result.first);
        var_to_data_type_map_.swap(result.second);
      } else {
        reader_.reset(new TensorSliceReader(filename));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

          RemoveFile_Locked(key.first);
        }
      }
    
      // Insert a new empty block, setting the bookkeeping to sentinel values
      // in order to update them as appropriate.
      auto new_entry = std::make_shared<Block>();
      lru_list_.push_front(key);
      lra_list_.push_front(key);
      new_entry->lru_iterator = lru_list_.begin();
      new_entry->lra_iterator = lra_list_.begin();
      new_entry->timestamp = timer_seconds_();
    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)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      if (ops_->new_random_access_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support NewRandomAccessFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      auto file = std::make_unique<TF_RandomAccessFile>();
      std::string translated_name = TranslateName(fname);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  5. .github/workflows/issue-on-pr-rollback.yml

          startsWith(github.event.head_commit.message, 'Rollback of PR #')
        steps:
          - name: Checkout repo
            uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3.2.0
          - name: Create a new Github Issue
            uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
            with:
              github-token: ${{secrets.GITHUB_TOKEN}}
              script: |
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Sep 12 16:40:29 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.cc

        target_oper_names[i] = c_target_oper_names[i];
      }
      string new_handle;
      status->status = s->session->PRunSetup(input_names, output_names,
                                             target_oper_names, &new_handle);
      if (status->status.ok()) {
        char* buf = new char[new_handle.size() + 1];
        memcpy(buf, new_handle.c_str(), new_handle.size() + 1);
        *handle = buf;
      }
    }
    
    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)
  7. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
      EXPECT_TF_META("v", list.size(), TF_ATTR_STRING, list_total_size);
      std::unique_ptr<void*[]> values(new void*[list.size()]);
      std::unique_ptr<size_t[]> lens(new size_t[list.size()]);
      std::unique_ptr<char[]> storage(new char[list_total_size]);
      TF_OperationGetAttrStringList(oper, "v", values.get(), lens.get(),
                                    list.size(), storage.get(), list_total_size,
    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)
  8. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
      std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]);
    
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/gradients/tape/tape_operation.cc

    }
    Status TapeOperation::SetAttrBoolList(const char* attr_name,
                                          const unsigned char* values,
                                          int num_values) {
      std::unique_ptr<bool[]> b(new bool[num_values]);
      for (int i = 0; i < num_values; ++i) {
        b[i] = values[i];
      }
      forward_op_.attrs.Set(attr_name,
                            gtl::ArraySlice<const bool>(b.get(), num_values));
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace {
    
    TEST(ExpiringLRUCacheTest, MaxAge) {
      const string key = "a";
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      tf_gcs_filesystem::ExpiringLRUCache<int> cache(
          1, 0, [&env]() { return env->NowSeconds(); });
      env->SetNowSeconds(1);
      // Verify that replacement of an existing element works, and updates the
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
Back to top