Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for GraphImportConfig (0.22 sec)

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

                               absl::string_view shapes,
                               GraphImportConfig::InputArrays* inputs);
    
    Status ParseInputArrayInfo(
        const std::vector<string>& node_names,
        const std::vector<string>& node_dtypes,
        const std::vector<std::optional<std::vector<int>>>& node_shapes,
        GraphImportConfig::InputArrays* inputs);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 04:56:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/lib/core/errors.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    std::string GraphImportConfig::str() const {
      std::ostringstream ss;
    
      ss << "graph_func_name: " << graph_func_name;
      InputArrays inputs;
      ss << "\ninputs: ";
      for (auto& it : inputs) {
        ss << "\n\t" << it.first << " -> "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.h

        const GraphImportConfig& specs, mlir::MLIRContext* context);
    
    // Given a Graph, returns a MLIR module containing the graph, expressed with
    // tf_executor dialect.
    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> ConvertGraphToMlir(
        const Graph& graph, const GraphDebugInfo& debug_info,
        const FunctionLibraryDefinition& flib_def, const GraphImportConfig& specs,
        mlir::MLIRContext* context);
    
    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/tf_to_tfl_flatbuffer.h

    absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> LoadFromGraphdefOrMlirSource(
        const std::string& input_filename, bool input_mlir,
        bool use_splatted_constant, const std::vector<std::string>& extra_tf_opdefs,
        const GraphImportConfig& specs, absl::string_view debug_info_file,
        absl::string_view input_arrays, absl::string_view input_dtypes,
        absl::string_view input_shapes, absl::string_view output_arrays,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 08:30:24 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/mlir_import_options.h

    namespace tensorflow {
    
    // TODO(jpienaar): This file and class are confusingly named. This seems to be
    // a SavedModel only import options file that exposes a subset of the
    // GraphImportConfig options, but the naming would make one think it is more
    // general.
    struct MLIRImportOptions {
      // If true, functionalize the input graph before importing it into MLIR.
      bool upgrade_legacy = false;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 20 13:19:26 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir.cc

                                          bool show_debug_info,
                                          GraphDebugInfo& debug_info,
                                          GraphImportConfig& specs,
                                          TF_Status* status) {
      GraphDef graphdef;
      auto s = tensorflow::LoadProtoFromBuffer(proto, &graphdef);
      if (!s.ok()) {
        tsl::Set_TF_Status_from_Status(status, s);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/python/graphdef_to_tfl_flatbuffer.cc

        const GraphDebugInfo& debug_info, const GraphDef& input,
        std::string* result) {
      using ::tflite::optimize::ReducedPrecisionSupport;
      mlir::MLIRContext context;
      GraphImportConfig specs;
      mlir::quant::QuantizationSpecs quant_specs;
    
      // Parse input arrays.
      std::vector<std::string> node_names;
      std::vector<std::string> node_dtypes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        absl::flat_hash_map<int, const std::pair<std::string, ArrayInfo>*>>;
    
    // Creates from a `GraphImportConfig::InputArrays` a mapping from a feeds output
    // tensor name to index and ArrayInfo. Keys and values are backed by
    // `GraphImportConfig::InputArrays`.
    absl::StatusOr<FeedsByNode> GetFeedsByNode(
        const GraphImportConfig::InputArrays& inputs) {
      FeedsByNode feeds_by_node;
      feeds_by_node.reserve(inputs.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

      }
    
      GraphDebugInfo debug_info;
      mlir::DialectRegistry registry;
      RegisterDialects(registry);
      mlir::MLIRContext context(registry);
      GraphImportConfig import_config;
      import_config.graph_as_function = true;
      import_config.control_outputs = *control_ret_node_names;
      import_config.upgrade_legacy = 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)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

              << 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()) {
        mlir::emitError(mlir::UnknownLoc::get(&ctx))
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top