Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/env_test.cc

        ASSERT_FALSE(TF_StringStreamNext(children, &childpath));
        ASSERT_EQ(childpath, nullptr);
        TF_StringStreamDone(children);
    
        TF_FileStatistics stats;
        TF_FileStat(filepath.c_str(), &stats, s);
        ASSERT_EQ(stats.length, strlen(data));
        ASSERT_FALSE(stats.is_directory);
        ASSERT_GT(stats.mtime_nsec, 0);
    
        // Trying to delete a non-empty directory should fail.
    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

      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->DeleteRecursively(dirname, &f, &d));
      *undeleted_file_count = f;
      *undeleted_dir_count = d;
    }
    
    void TF_FileStat(const char* filename, TF_FileStatistics* stats,
                     TF_Status* status) {
      ::tensorflow::FileStatistics cc_stats;
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Status s =
    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

                                                    TF_Status* status);
    
    // Obtains statistics for the given path. If status is TF_OK, *stats is
    // updated, otherwise it is not touched.
    TF_CAPI_EXPORT extern void TF_FileStat(const char* filename,
                                           TF_FileStatistics* stats,
                                           TF_Status* status);
    
    // Creates or truncates the given filename and returns a handle to be used for
    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