Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for kSavedModelVariablesFilename (0.45 sec)

  1. tensorflow/cc/experimental/libexport/load.cc

      // MLAs come along
      if (Env::Default()->FileExists(variables_dir).ok()) {
        tf_package.has_checkpoint_ = true;
        tf_package.variables_filepath_ = tensorflow::io::JoinPath(
            variables_dir, tensorflow::kSavedModelVariablesFilename);
        tf_package.variable_reader_ = std::make_unique<tensorflow::BundleReader>(
            tensorflow::Env::Default(), tf_package.variables_filepath_);
        tensorflow::Tensor object_graph_tensor;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 13 15:16:07 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/constants.h

    // Directory in which to save the SavedModel variables.
    inline constexpr char kSavedModelVariablesDirectory[] = "variables";
    
    // SavedModel variables filename.
    inline constexpr char kSavedModelVariablesFilename[] = "variables";
    
    // SavedModel SignatureDef keys for the initialization and train ops. Used in
    // V2 SavedModels.
    inline constexpr char kSavedModelInitOpSignatureKey[] = "__saved_model_init_op";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 23:02:22 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/saved_model/core/ops/restore_ops_test.cc

    std::string CheckpointPrefix(StringPiece saved_model_dir) {
      return io::JoinPath(testing::TensorFlowSrcRoot(), "cc/saved_model/testdata",
                          saved_model_dir, kSavedModelVariablesDirectory,
                          kSavedModelVariablesFilename);
    }
    
    class RestoreOpsTest : public ::testing::Test {
     public:
      RestoreOpsTest()
          : device_mgr_(testing::CreateTestingDeviceMgr()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 19:16:58 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. tensorflow/cc/saved_model/fingerprinting.cc

    // TODO(b/290063184): remove when USM is GA
    uint64_t HashCheckpointIndexFile(absl::string_view model_dir) {
      std::string meta_filename = MetaFilename(io::JoinPath(
          model_dir, kSavedModelVariablesDirectory, kSavedModelVariablesFilename));
      std::string data;
      absl::Status read_status =
          ReadFileToString(Env::Default(), meta_filename, &data);
      if (read_status.ok()) {
        return tensorflow::Fingerprint64(data);
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 26 00:24:44 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/cc/saved_model/bundle_v2.cc

            << "No checkpoint found, assuming this is a program-only SavedModel";
      } else {
        // Load the variables checkpoint reader.
        const std::string variables_prefix =
            io::JoinPath(variables_dir, kSavedModelVariablesFilename);
        bundle->variable_reader_ =
            std::make_unique<BundleReader>(Env::Default(), variables_prefix);
        TF_RETURN_WITH_CONTEXT_IF_ERROR(
            bundle->variable_reader_->status(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/loader.cc

      // variables are stored in the variables.data-?????-of-????? files.
      const string variables_index_path = io::JoinPath(
          variables_directory, MetaFilename(kSavedModelVariablesFilename));
      TF_ASSIGN_OR_RETURN(
          bool variables_index_exists,
          internal::FileExists(Env::Default(), variables_index_path));
      if (!variables_index_exists) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:36:00 UTC 2024
    - 23K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/core/tf_saved_model_api.cc

              return Status();
            }
    
            std::string variables_path_prefix =
                io::JoinPath(directory, kSavedModelVariablesDirectory,
                             kSavedModelVariablesFilename);
            ImmediateTensorHandlePtr restored_output;
            TF_RETURN_IF_ERROR(internal::SingleRestore(
                context, variables_path_prefix, checkpoint_key, variable->dtype(),
                &restored_output));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. tensorflow/cc/saved_model/fingerprinting_utils.cc

    uint64_t HashCheckpointIndexFile(absl::string_view model_dir) {
      std::string meta_filename = MetaFilename(io::JoinPath(
          model_dir, kSavedModelVariablesDirectory, kSavedModelVariablesFilename));
      std::string data;
      absl::Status read_status =
          ReadFileToString(Env::Default(), meta_filename, &data);
      if (read_status.ok()) {
        return tensorflow::Fingerprint64(data);
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

            builder.getStringAttr("__tf_saved_model_variables"),
            /*filename=*/
            builder.getStringAttr(io::JoinPath(kSavedModelVariablesDirectory,
                                               kSavedModelVariablesFilename)));
        variable_and_assets.push_back(
            {input_.meta_graph_def().saver_def().filename_tensor_name(),
             variable_filename_op});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
Back to top