Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for GraphDebugInfo (0.24 sec)

  1. tensorflow/compiler/mlir/lite/python/graphdef_to_tfl_flatbuffer.cc

    #include "tsl/platform/errors.h"
    #include "tsl/platform/statusor.h"
    
    namespace tensorflow {
    
    absl::Status ConvertGraphDefToTFLiteFlatBuffer(
        const toco::ModelFlags& model_flags, toco::TocoFlags& toco_flags,
        const GraphDebugInfo& debug_info, const GraphDef& input,
        std::string* result) {
      using ::tflite::optimize::ReducedPrecisionSupport;
      mlir::MLIRContext context;
      GraphImportConfig specs;
      mlir::quant::QuantizationSpecs quant_specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/python/converter_python_api_wrapper.cc

          flag is set to true returns a dictionary that contains string representation
          of the converted model and some statistics like arithmetic ops count.
          `debug_info_str` contains the `GraphDebugInfo` proto. When
          `enable_mlir_converter` is True, tuse MLIR-based conversion instead of
          TOCO conversion.
        )pbdoc");
      m.def(
          "ExperimentalMlirQuantizeModel",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 18:18:30 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/cc/saved_model/loader.h

      const protobuf::Map<string, SignatureDef>& GetSignatures() const override {
        return meta_graph_def.signature_def();
      }
    
      std::unique_ptr<Session> session;
      MetaGraphDef meta_graph_def;
      std::unique_ptr<GraphDebugInfo> debug_info;
    };
    
    // A version of SavedModelBundle that avoids storing a potentially large
    // MetaGraphDef. Prefer to use SavedModelBundleLite in new code.
    class SavedModelBundleLite : public SavedModelBundleInterface {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

                             << ", FallbackEnabled: " << num_passes_fallback_enabled
                             << ", Total: " << registry_->passes().size();
      }
    
      GraphDebugInfo debug_info;
      mlir::DialectRegistry registry;
      RegisterDialects(registry);
      mlir::MLIRContext context(registry);
      GraphImportConfig import_config;
      import_config.graph_as_function = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

          const GraphDebugInfo& debug_info,
          const FunctionLibraryDefinition& flib_def, const GraphImportConfig& specs,
          std::unordered_map<std::string, std::string>& tf_name_to_mlir_name,
          bool disable_crash_analysis = false);
    
     private:
      explicit GraphDefImporter(
          const FunctionLibraryDefinition& flib, const GraphDebugInfo& debug_info,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/bundle_v2.cc

      // Correct the endiness of Tensor content on big-endian system
      if (!port::kLittleEndian) {
        TF_RETURN_IF_ERROR(
            ByteSwapTensorContentInMetaGraphDef(&(bundle->meta_graph_def_)));
      }
    
      // Load GraphDebugInfo.
      TF_RETURN_IF_ERROR(
          ReadSavedModelDebugInfoIfPresent(export_dir, &bundle->debug_info_));
    
      const std::string variables_dir =
          io::JoinPath(export_dir, kSavedModelVariablesDirectory);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

          mlir::emitError(mlir::UnknownLoc::get(&ctx))
              << pass->name() << ": " << status.message();
          return signalPassFailure();
        }
      }
    
      // Convert Graph to MLIR
      GraphDebugInfo debug_info;
      GraphImportConfig specs;
      auto module_or_status =
          ConvertGraphToMlir(**options.graph, debug_info, flib_def, specs, &ctx);
      if (!module_or_status.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

      TF_RETURN_IF_ERROR(
          tensorflow::LoadProtoFromBuffer({input.data(), input.size()}, &graphdef));
      if (!port::kLittleEndian)
        TF_RETURN_IF_ERROR(ByteSwapTensorContentInGraphDef(&graphdef));
    
      GraphDebugInfo debug_info;
      if (!import_options.debug_info_file.empty()) {
        TF_RETURN_IF_ERROR(
            LoadProtoFromFile(import_options.debug_info_file, &debug_info));
      }
    
      GraphImportConfig specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

        llvm::ArrayRef<XlaArgument> args, llvm::ArrayRef<std::string> control_rets,
        llvm::StringRef device_type, const FunctionLibraryDefinition& flib_def,
        const GraphDebugInfo& debug_info,
        llvm::MutableArrayRef<std::unique_ptr<mlir::Pass>>
            custom_legalization_passes = {});
    
    static inline Status CompileToHloGraphAnalysisFailedError() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/python/converter_python_api.cc

      if (!toco_flags.ParseFromString(toco_flags_proto_txt)) {
        PyErr_SetString(PyExc_ValueError,
                        "Failed to convert Toco to Python String.");
        return nullptr;
      }
    
      tensorflow::GraphDebugInfo debug_info;
      if (debug_info_txt_raw && debug_info_txt_raw != Py_None) {
        std::string debug_info_txt = ConvertArg(debug_info_txt_raw, &error);
        if (error) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top