Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for uint64_t (0.31 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      // However, it is better to be consistent everywhere.
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      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) {
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    namespace tf_random_access_file {
    using ReadFn =
        std::function<int64_t(const std::string& path, uint64_t offset, size_t n,
                              char* buffer, TF_Status* status)>;
    typedef struct GCSFile {
      const std::string path;
      const bool is_cache_enable;
      const uint64_t buffer_size;
      ReadFn read_fn;
      absl::Mutex buffer_mutex;
      uint64_t buffer_start ABSL_GUARDED_BY(buffer_mutex);
    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)
  3. tensorflow/c/eager/dlpack.cc

        case TF_DataType::TF_INT64:
          dtype.code = DLDataTypeCode::kDLInt;
          break;
        case TF_DataType::TF_UINT8:
        case TF_DataType::TF_UINT16:
        case TF_DataType::TF_UINT32:
        case TF_DataType::TF_UINT64:
          dtype.code = DLDataTypeCode::kDLUInt;
          break;
        case TF_DataType::TF_BFLOAT16:
          dtype.code = DLDataTypeCode::kDLBfloat;
          break;
        case TF_DataType::TF_COMPLEX64:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      return cache_size_;
    }
    
    void RamFileBlockCache::Prune() {
      while (!stop_pruning_thread_.WaitForNotificationWithTimeout(
          absl::Microseconds(1000000))) {
        absl::MutexLock lock(&mu_);
        uint64_t now = timer_seconds_();
        while (!lra_list_.empty()) {
          auto it = block_map_.find(lra_list_.back());
          if (now - it->second->timestamp <= max_staleness_) {
    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)
  5. tensorflow/c/eager/c_api_experimental.cc

      tensorflow::unwrap(ctx)->SetShouldStoreGraphs(true);
    }
    
    void TFE_ContextDisableGraphCollection(TFE_Context* ctx) {
      tensorflow::unwrap(ctx)->SetShouldStoreGraphs(false);
    }
    
    uint64_t TFE_GetContextId(TFE_Context* ctx) {
      tensorflow::EagerContext* context =
          tensorflow::ContextFromInterface(tensorflow::unwrap(ctx));
      return context->GetContextId();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

                                             undeleted_dirs);
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      std::string translated_name = TranslateName(dirname);
      uint64_t plugin_undeleted_files, plugin_undeleted_dirs;
      ops_->delete_recursively(filesystem_.get(), translated_name.c_str(),
                               &plugin_undeleted_files, &plugin_undeleted_dirs,
    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)
  7. tensorflow/c/eager/c_api_test_util.cc

    }
    
    TFE_Op* SendOp(TFE_Context* ctx, TFE_TensorHandle* in,
                   const std::string& op_name, const std::string& send_device,
                   const std::string& recv_device,
                   tensorflow::uint64 send_device_incarnation) {
      TF_Status* status = TF_NewStatus();
      TFE_Op* op = TFE_NewOp(ctx, op_name.c_str(), status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, in, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      std::vector<char> out;
      // Our fake environment is initialized with the current timestamp.
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      uint64 now = Env::Default()->NowSeconds();
      env->SetNowSeconds(now);
      tf_gcs_filesystem::RamFileBlockCache cache(
          8, 32, 1 /* max staleness */, fetcher,
          [&env]() { return env->NowSeconds(); });
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
Back to top