Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for TensorFlowLiteDialect (0.43 sec)

  1. tensorflow/compiler/mlir/lite/transforms/passes.td

      let constructor = "CreateAnalyzeVariablesPass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
    }
    
    def DefaultQuantParamsPass : Pass<"tfl-default-quant", "mlir::func::FuncOp"> {
      let summary = "Apply quantization with default quantization parameter";
      let constructor = "CreateDefaultQuantParamsPass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
      let options = [
        Option<"default_min_", "default-min", "double", "-1.0",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

    }
    
    def LegalizeHloToTfLitePass : Pass<"tfl-legalize-hlo", "mlir::ModuleOp"> {
      let summary = "Legalize from MHLO to the TFLite dialect";
      let dependentDialects = ["TFL::TensorFlowLiteDialect"];
      let constructor = "mlir::odml::CreateLegalizeHloToTfLitePass()";
    }
    
    def LegalizeStablehloToVhloPass : Pass<"stablehlo-legalize-vhlo", "ModuleOp"> {
      let summary = "Legalize StableHLO to VHLO for ODML.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h"
    #define GET_ATTRDEF_CLASSES
    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops_attrdefs.h.inc"
    
    namespace mlir {
    namespace TFL {
    
    typedef TFLDialect TensorFlowLiteDialect;
    
    // The Control type is a token-like value that models control dependencies
    class ControlType : public Type::TypeBase<ControlType, Type, TypeStorage> {
     public:
      using Base::Base;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/register_common_dialects.cc

      mlir::mhlo::registerAllMhloDialects(registry);
      mlir::registerAllDialects(registry);
      mlir::registerAllExtensions(registry);
      mlir::stablehlo::registerAllDialects(registry);
    
      registry.insert<mlir::TFL::TensorFlowLiteDialect>();
      registry.insert<mlir::kernel_gen::tf_framework::TFFrameworkDialect>();
      registry.insert<mlir::quant::QuantizationDialect>();
      registry.insert<mlir::quantfork::QuantizationForkDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 22:45:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc

    void CompositeLoweringPass::runOnOperation() {
      RewritePatternSet patterns(&getContext());
    
      populateWithGenerated(patterns);
    
      ConversionTarget target(getContext());
      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
      target.addLegalDialect<arith::ArithDialect>();
    
      if (failed(applyPartialConversion(getOperation(), target,
                                        std::move(patterns)))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/test_base.h

            builder_(ctx_.get()) {
        ctx_->loadDialect<
            arith::ArithDialect, mlir::stablehlo::StablehloDialect,
            func::FuncDialect, TF::TensorFlowDialect, TFL::TensorFlowLiteDialect,
            tf_saved_model::TensorFlowSavedModelDialect,
            tf_executor::TensorFlowExecutorDialect, quant::QuantizationDialect,
            quantfork::QuantizationForkDialect>();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 07:19:09 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      target.addIllegalDialect<stablehlo::StablehloDialect>();
      target.addDynamicallyLegalDialect<func::FuncDialect>(
          [&](auto) { return is_func_legal; });
      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
      target.addLegalDialect<arith::ArithDialect>();
      target.addLegalDialect<vhlo::VhloDialect>();
    
      StablehloToOdmlTypeConverter converter;
      RewritePatternSet patterns(context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

      func.return %3 : tensor<2x1xf32>
    })";
      const std::string kExpectedFB = CreateRuntimeMetadata();
      mlir::DialectRegistry registry;
      registry.insert<mlir::TFL::TensorFlowLiteDialect, mlir::arith::ArithDialect,
                      mlir::func::FuncDialect>();
      mlir::MLIRContext context(registry);
      auto module = mlir::OwningOpRef<mlir::ModuleOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.cc

        return absl::InvalidArgumentError(absl::StrFormat(
            "Cannot open input file: %s. %s", input_filename, error));
      }
    
      if (input_mlir) {
        mlir::DialectRegistry registry;
        registry.insert<mlir::TFL::TensorFlowLiteDialect, mlir::arith::ArithDialect,
                        mlir::func::FuncDialect>();
        mlir::func::registerAllExtensions(registry);
        context->appendDialectRegistry(registry);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

      void SetUp() override {
        context_ = std::make_unique<mlir::MLIRContext>();
        context_->loadDialect<mlir::arith::ArithDialect, mlir::func::FuncDialect,
                              mlir::TF::TensorFlowDialect, TensorFlowLiteDialect>();
        builder_ = std::make_unique<mlir::Builder>(context_.get());
    
        fused_max_unpooling_func_ =
            createMaxUnpoolingFunc(builder_.get(), {2, 4, 4, 2}, {2, 2, 2, 2});
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
Back to top