Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_DeleteDir (0.31 sec)

  1. tensorflow/c/env_test.cc

        ASSERT_FALSE(stats.is_directory);
        ASSERT_GT(stats.mtime_nsec, 0);
    
        // Trying to delete a non-empty directory should fail.
        TF_DeleteDir(dirpath.c_str(), s);
        ASSERT_NE(TF_OK, TF_GetCode(s))
            << "TF_DeleteDir unexpectedly succeeded with a non-empty directory "
            << dirpath;
    
        TF_DeleteFile(filepath.c_str(), s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/c/env.cc

    void TF_CreateDir(const char* dirname, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->CreateDir(dirname));
    }
    
    void TF_DeleteDir(const char* dirname, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->DeleteDir(dirname));
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/env.h

    // Deletes the specified directory. Typical status codes are:
    //  * TF_OK - successfully deleted the directory
    //  * TF_FAILED_PRECONDITION - the directory is not empty
    TF_CAPI_EXPORT extern void TF_DeleteDir(const char* dirname, TF_Status* status);
    
    // Deletes the specified directory and all subdirectories and files underneath
    // it. This is accomplished by traversing the directory tree rooted at dirname
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
Back to top