Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Dir (0.21 sec)

  1. tensorflow/c/c_api.cc

        DCHECK_EQ(nullptr, session);
        return nullptr;
      }
    }
    
    TF_Session* TF_LoadSessionFromSavedModel(
        const TF_SessionOptions* session_options, const TF_Buffer* run_options,
        const char* export_dir, const char* const* tags, int tags_len,
        TF_Graph* graph, TF_Buffer* meta_graph_def, TF_Status* status) {
    // TODO(sjr): Remove the IS_MOBILE_PLATFORM guard. This will require ensuring
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/env.cc

                              int64_t* undeleted_dir_count, TF_Status* status) {
      ::int64_t f, d;
    
      TF_SetStatus(status, TF_OK, "");
      ::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,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  3. tensorflow/c/env_test.cc

        ASSERT_TF_OK(s) << "TF_DeleteDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        TF_DeleteStatus(s);
        break;
      }
    
      ASSERT_TRUE(found) << "expected at least one temp dir";
    
      TF_StringStreamDone(tempdirs);
    }
    
    TEST(TestEnv, TestTimeFunctions) {
      ASSERT_GE(TF_NowSeconds(), 946684800);  // Midnight Jan 1, 2000
      ASSERT_GE(TF_NowMicros(), 946684800 * 1e6);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      if (tmp_dir == "")
        return nullptr;
      else
        return &tmp_dir;
    }
    
    namespace tensorflow {
    namespace {
    
    // TODO(vnvo2409): Refactor `gcs_filesystem_test` to remove unnecessary tests
    // after porting all tests from
    // `//tensorflow/core/platform/cloud:gcs_file_system_test`.
    class GCSFilesystemTest : public ::testing::Test {
     public:
      void SetUp() override {
        root_dir_ = io::JoinPath(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

            plugin_memory_allocate(num_entries * sizeof((*entries)[0])));
        for (int i = 0; i < num_entries; i++) {
          (*entries)[i] = strdup(dir_entries[i]->d_name);
          plugin_memory_free(dir_entries[i]);
        }
        plugin_memory_free(dir_entries);
      }
    
      return num_entries;
    }
    
    }  // namespace tf_posix_filesystem
    
    static void ProvideFilesystemSupportFor(TF_FilesystemPluginOps* ops,
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      if (TF_GetCode(status) != TF_OK) return;
    
      std::string src_dir = src;
      std::string dst_dir = dst;
      MaybeAppendSlash(&src_dir);
      MaybeAppendSlash(&dst_dir);
      for (const std::string& children : childrens) {
        RenameObject(filesystem, src_dir + children, dst_dir + children, status);
        if (TF_GetCode(status) != TF_OK) return;
      }
      TF_SetStatus(status, TF_OK, "");
    }
    C++
    - Registered: Tue Apr 23 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/modular_filesystem_test.cc

          // behaves differently on Windows. `tmp_dir` should be something like
          // `path/to/tmp/dir/`. After joining path, we will have
          // /path/to/tmp/dir/tf_fs_rng_name/`
          root_dir_ = tensorflow::strings::StrCat(
              "/", tmp_dir_,
              tensorflow::strings::StrCat("tf_fs_", rng_val_, "_", test_name), "/");
        } else {
          root_dir_ = tensorflow::io::JoinPath(
              tmp_dir_,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return result;
    }
    
    Status ModularFileSystem::GetChildren(const std::string& dir,
                                          TransactionToken* token,
                                          std::vector<std::string>* result) {
      if (ops_->get_children == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", dir, " does not support GetChildren()"));
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

      TF_ColocateWith(desc_, feed1_);
      SetViaProto(desc_, {});
      FinishAndVerify(desc_, {});
    }
    
    TEST(CAPI, SavedModel) {
      // Load the saved model.
      const string saved_model_dir = tensorflow::GetDataDependencyFilepath(
          tensorflow::io::JoinPath("tensorflow", "cc", "saved_model", "testdata",
                                   "half_plus_two", "00000123"));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top