Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for deleteDir (0.21 sec)

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

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::DeleteDir(const std::string& dirname,
                                        TransactionToken* token) {
      if (ops_->delete_dir == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", dirname, " does not support DeleteDir()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
    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)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

                           TF_Status* status) {
      if (unlink(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    
    static void DeleteDir(const TF_Filesystem* filesystem, const char* path,
                          TF_Status* status) {
      if (rmdir(path) != 0)
        TF_SetStatusFromIOError(status, errno, path);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    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)
  3. tensorflow/c/experimental/filesystem/modular_filesystem.h

      Status DeleteRecursively(const std::string& dirname, TransactionToken* token,
                               int64_t* undeleted_files,
                               int64_t* undeleted_dirs) override;
      Status DeleteDir(const std::string& dirname,
                       TransactionToken* token) override;
      Status RecursivelyCreateDir(const std::string& dirname,
                                  TransactionToken* token) override;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      if (TF_GetCode(status) == TF_OK) ClearFileCaches(gcs_file, path);
    }
    
    // Checks that the directory is empty (i.e no objects with this prefix exist).
    // Deletes the GCS directory marker if it exists.
    void DeleteDir(const TF_Filesystem* filesystem, const char* path,
                   TF_Status* status) {
      // A directory is considered empty either if there are no matching objects
    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)
  5. tensorflow/c/eager/c_api_experimental_test.cc

      EXPECT_EQ(22, product[3]);
      TF_DeleteStatus(status);
    }
    TEST(CAPI, Executor_MatMul_CPU) { Executor_MatMul_CPU(false); }
    TEST(CAPI, Executor_MatMul_CPUAsync) { Executor_MatMul_CPU(true); }
    
    void Deleter(void* data, size_t unused, void* tensor_handle) {
      TFE_DeleteTensorHandle(static_cast<TFE_TensorHandle*>(tensor_handle));
    }
    
    TEST(CAPI, TensorHandleOnDeviceMemory) {
      TF_Status* status = TF_NewStatus();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  6. tensorflow/c/eager/dlpack.cc

      }
      return valid;
    }
    }  // namespace
    
    void TFE_CallDLManagedTensorDeleter(void* dlm_ptr) {
      DLManagedTensor* dlMTensor = static_cast<DLManagedTensor*>(dlm_ptr);
      if (dlMTensor->deleter != nullptr) {
        dlMTensor->deleter(dlMTensor);
      }
    }
    
    void* TFE_HandleToDLPack(TFE_TensorHandle* h, TF_Status* status) {
      auto tf_dlm_context = GetDlContext(h, status);
      if (!status->status.ok()) {
        return nullptr;
    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)
  7. tensorflow/c/eager/c_api_experimental.h

                                                                  TF_Status*);
    
    // Creates a new TensorHandle from memory residing in the physical device
    // device_name. Takes ownership of the memory, and will call deleter to release
    // it after TF no longer needs it or in case of error.
    //
    // Custom devices must use TFE_NewCustomDeviceTensorHandle instead.
    TF_CAPI_EXPORT extern TFE_TensorHandle* TFE_NewTensorHandleFromDeviceMemory(
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 39.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/tape.h

                                          absl::MakeSpan(in_gradients));
          if (!persistent_) {
            trace.backward_function_deleter(trace.backward_function);
          }
          if (!s.ok()) {
            return s;
          }
        } else {
          if (!persistent_) {
            trace.backward_function_deleter(trace.backward_function);
          }
          for (Gradient* grad : out_gradients) {
            if (grad != nullptr) {
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
Back to top