Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for snat (0.14 sec)

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

      return StatusFromTF_Status(plugin_status.get());
    }
    
    Status ModularFileSystem::Stat(const std::string& fname,
                                   TransactionToken* token, FileStatistics* stat) {
      if (ops_->stat == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support Stat()"));
    
      if (stat == nullptr)
        return errors::InvalidArgument("FileStatistics pointer must not be NULL");
    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/modular_filesystem_test.cc

        GTEST_SKIP() << "NewWritableFile() not supported: " << status;
    
      FileStatistics stat;
      status = env_->Stat(filepath, &stat);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "Stat() not supported: " << status;
      EXPECT_FALSE(stat.is_directory);
      EXPECT_EQ(stat.length, 0);
    }
    
    TEST_P(ModularFileSystemTest, TestStatNonEmptyFile) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  3. CONTRIBUTING.md

    -   Rarely, If the tests fail at this stage, we cannot merge the code.
    -   If needed, we may come to you to make some changes. At times, it may not be
        you, it may be us who may have hit a snag. Please be patient while we work
        to fix this.
    -   Once the internal tests pass, we go ahead and merge the code internally as
        well as externally on GitHub.
    
    In a graphical form, the entire lifetime of a PR looks like
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu Mar 21 11:45:51 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  4. tensorflow/c/env.cc

                     TF_Status* status) {
      ::tensorflow::FileStatistics cc_stats;
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Status s =
          ::tensorflow::Env::Default()->Stat(filename, &cc_stats);
      ::tensorflow::Set_TF_Status_from_Status(status, s);
      if (s.ok()) {
        stats->length = cc_stats.length;
        stats->mtime_nsec = cc_stats.mtime_nsec;
        stats->is_directory = cc_stats.is_directory;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

        if (max_age_ == 0) {
          return compute_func(key, value, status);
        }
    
        // Note: we hold onto mu_ for the rest of this function. In practice, this
        // is okay, as stat requests are typically fast, and concurrent requests are
        // often for the same file. Future work can split this up into one lock per
        // key if this proves to be a significant performance bottleneck.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

          });
    
      uint64_t stat_cache_max_age = kStatCacheDefaultMaxAge;
      size_t stat_cache_max_entries = kStatCacheDefaultMaxEntries;
      const char* stat_cache_max_age_env = std::getenv(kStatCacheMaxAge);
      if (stat_cache_max_age_env &&
          absl::SimpleAtoi(stat_cache_max_age_env, &value)) {
        stat_cache_max_age = value;
      }
      const char* stat_cache_max_entries_env = std::getenv(kStatCacheMaxEntries);
    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)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.h

    #ifndef TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_POSIX_POSIX_FILESYSTEM_HELPER_H_
    #define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_POSIX_POSIX_FILESYSTEM_HELPER_H_
    
    #include <dirent.h>
    #include <sys/stat.h>
    
    namespace tf_posix_filesystem {
    
    // Copies up to `size` of `src` to `dst`, creating destination if needed.
    //
    // Callers should pass size of `src` in `size` and the permissions of `src` in
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.h

                                  TransactionToken* token) override;
      Status CreateDir(const std::string& dirname,
                       TransactionToken* token) override;
      Status Stat(const std::string& fname, TransactionToken* token,
                  FileStatistics* stat) override;
      Status IsDirectory(const std::string& fname,
                         TransactionToken* token) override;
      Status GetFileSize(const std::string& fname, TransactionToken* token,
    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)
  9. ci/official/utilities/setup_macos.sh

    # with the GNU style, we need to set GNU utilities to be default on Mac.
    if [[ -n "$(which grealpath)" ]] &&  [[ -n "$(which gstat)" ]]; then
      alias realpath=grealpath
      alias stat=gstat
      # By default, aliases are only expanded in interactive shells, which means
      # that they are not substituted for their corresponding commands in shell
      # scripts. By setting "expand_aliases", we enable alias expansion in
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/filesystem_interface.h

      ///     filesystem entry.
      ///   * Must set `status` to `TF_FAILED_PRECONDITION` if `path` is invalid.
      ///   * Might use any other error value for `status` to signal other errors.
      void (*stat)(const TF_Filesystem* filesystem, const char* path,
                   TF_FileStatistics* stats, TF_Status* status);
    
      /// Checks whether the given `path` is a directory or not.
      ///
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
Back to top