Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for SavedModelBundle (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.h

        const std::unordered_set<std::string>& tags,
        absl::Span<std::string> exported_names, mlir::MLIRContext* context,
        MLIRImportOptions options,
        std::unique_ptr<tensorflow::SavedModelBundle>* saved_model_bundle =
            nullptr);
    
    // Converts a TensorFlow V1 SavedModel stored in the directory with the given
    // `saved_model_dir` into a MLIR module. Creates MLIR entities into the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

        absl::flat_hash_map<std::string, std::string> &function_aliases) {
      // Convert the SavedModelBundle to an MLIR module.
      MLIRImportOptions import_options;
      import_options.upgrade_legacy = true;
      import_options.lift_variables = false;
      import_options.include_variables_in_initializers = true;
      auto bundle = std::make_unique<SavedModelBundle>();
    
      // TODO: b/213406917 - Add support for the object graph based saved model.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.h

    // Given a V1 SavedModel, returns a MLIR module containing the functions,
    // expressed with tf_executor dialect.
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ConvertSavedModelV1ToMlir(
        const SavedModelBundle& saved_model, absl::Span<std::string> exported_names,
        mlir::MLIRContext* context, MLIRImportOptions options = {});
    
    // Given a V1 SavedModel, returns a MLIR module containing the functions,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

      std::vector<std::string> custom_opdefs(toco_flags.custom_opdefs().begin(),
                                             toco_flags.custom_opdefs().end());
      auto bundle = std::make_unique<tensorflow::SavedModelBundle>();
      TF_ASSIGN_OR_RETURN(
          auto module,
          ImportSavedModel(
              model_flags.saved_model_dir(), model_flags.saved_model_version(),
              tags, absl::MakeSpan(custom_opdefs), exported_names, specs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tf_tfl_translate.cc

        llvm::errs() << "You must specify `emit-select-tf-ops=true` when passing "
                        "`select-user-tf-ops` flag.";
        return kTrFailure;
      }
    
      std::unique_ptr<tensorflow::SavedModelBundle> bundle;
    
      // TODO(b/147435528): We need to test the e2e behavior once the graph freezing
      // inside mlir is done.
      if ((import_saved_model_object_graph || import_saved_model_signature_defs) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

        mlir::OwningOpRef<mlir::ModuleOp> module,
        const mlir::TFL::PassConfig& pass_config,
        const std::unordered_set<std::string>& saved_model_tags,
        std::string* result, SavedModelBundle* saved_model_bundle,
        const PyFunctionLibrary* quantization_py_function_lib) {
      if (toco_flags.has_dump_graphviz_dir()) {
        TF_RETURN_IF_ERROR(DumpOpGraphToFile(
            module.get(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      static Status LiftVariables(const SavedModelBundle& bundle,
                                  mlir::ModuleOp module,
                                  bool lift_varhandle_ops_to_args,
                                  bool include_variables_in_initializers);
    };
    
    Status SavedModelSignatureDefImporter::LiftVariables(
        const SavedModelBundle& bundle, mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.cc

        return nullptr;
      }
    
      std::unordered_set<string> tag_set;
      for (int i = 0; i < tags_len; i++) {
        tag_set.insert(string(tags[i]));
      }
    
      tensorflow::SavedModelBundle bundle;
      status->status =
          tensorflow::LoadSavedModel(session_options->options, run_options_proto,
                                     export_dir, tag_set, &bundle);
      if (!status->status.ok()) return nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top