Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for PreprocessAndFreezeGraph (0.32 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.h

    // Overload of `PreprocessAndFreezeGraph` that uses the default MLIR dump file
    // prefix.
    inline absl::Status PreprocessAndFreezeGraph(mlir::ModuleOp module_op,
                                                 mlir::MLIRContext* context,
                                                 std::optional<Session*> session) {
      return PreprocessAndFreezeGraph(
          /*mlir_dump_file_prefix=*/kDefaultTfQuantMlirDumpFilePrefix,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.cc

    using ::stablehlo::quantization::QuantizationConfig;
    using ::tensorflow::MLIRImportOptions;
    using ::tensorflow::SavedModelBundle;
    using ::tensorflow::SavedModelSignatureDefsToMlirImport;
    using ::tensorflow::quantization::PreprocessAndFreezeGraph;
    
    absl::StatusOr<ImportedMlirModuleOp> SavedModelToMlirModuleOp(
        const absl::string_view saved_model_path,
        const std::unordered_set<std::string>& tags,
        const std::vector<std::string>& signature_keys,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc

      llvm::SmallVector<llvm::ArrayRef<int64_t>> input_arg_shapes(
          input_arg_shapes_vec.begin(), input_arg_shapes_vec.end());
      TF_RETURN_IF_ERROR(tensorflow::quantization::PreprocessAndFreezeGraph(
          /*mlir_dump_file_prefix=*/"", /*is_inliner_run=*/true,
          /*noinline_functions=*/aliased_function_names, *module_op, context,
          session,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/quantize_preprocess.cc

      pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
      // MHLO -> StableHLO legalization.
      pm.addPass(mlir::mhlo::createHloLegalizeToStablehloPass());
    }
    
    absl::Status PreprocessAndFreezeGraph(
        const absl::string_view mlir_dump_file_prefix, const bool is_inliner_run,
        const absl::flat_hash_set<std::string>& noinline_functions,
        mlir::ModuleOp module_op, mlir::MLIRContext* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

          LOG(INFO) << "file type is mlir. ignoring freezing TF graph";
        } else {
          LOG(INFO) << "--freeze-tf-graph is on. Freezing TF graph...";
          const auto status = tensorflow::quantization::PreprocessAndFreezeGraph(
              *module, module->getContext(), session);
          if (!status.ok()) {
            return tensorflow::errors::Aborted(
                "Failed to preprocess & freeze TF graph");
          }
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc

      absl::flat_hash_set<std::string> aliased_function_names;
      absl::c_for_each(function_aliases, [&](const auto &aliases) {
        return aliased_function_names.insert(aliases.first);
      });
    
      TF_RETURN_IF_ERROR(PreprocessAndFreezeGraph(
          /*mlir_dump_file_prefix=*/kDefaultTfQuantMlirDumpFilePrefix,
          /*is_inliner_run=*/is_inliner_run,
          /*noinline_functions=*/aliased_function_names, module_ref.get(), context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

      // stablehlo, we automatically enable dynamic range quantization
    
      if (toco_flags.post_training_quantize()) {
        const auto status = quantization::PreprocessAndFreezeGraph(
            module, module.getContext(), session);
        if (!status.ok()) {
          return status_handler.Combine(
              absl::InternalError("Failed to preprocess & freeze TF graph."));
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top