Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for TensorFlowDialect (0.62 sec)

  1. tensorflow/compiler/mlir/quantization/common/test_base.h

          : ctx_(stablehlo::CreateMlirContextForQuantization()),
            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)
  2. tensorflow/compiler/mlir/quantization/stablehlo/tools/stablehlo_quant_opt.cc

      // Register StableHLO Quantizer pass pipelines.
      mlir::quant::stablehlo::RegisterPassPipelines();
    
      mlir::DialectRegistry registry;
      registry.insert<mlir::scf::SCFDialect, mlir::TF::TensorFlowDialect,
                      mlir::tf_saved_model::TensorFlowSavedModelDialect,
                      mlir::func::FuncDialect, mlir::shape::ShapeDialect,
                      mlir::arith::ArithDialect, mlir::tf_type::TFTypeDialect,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 07:37:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc

        // This is a brief description of the pass.
        return "Convert tf.CustomAggregator op to quant.Stats";
      }
    
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TF::TensorFlowDialect>();
        registry.insert<quant::QuantizationDialect>();
        registry.insert<quantfork::QuantizationForkDialect>();
      }
    
      void runOnOperation() override;
    };
    
    class ConvertCustomAggregationOpToQuantStats
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size_test.cc

    namespace mlir {
    namespace quant {
    namespace {
    
    using ::testing::Eq;
    
    class GetSizeInBytesTest : public ::testing::Test {
     protected:
      GetSizeInBytesTest() : ctx_() { ctx_.loadDialect<TF::TensorFlowDialect>(); }
    
      MLIRContext ctx_;
    };
    
    TF::ConstOp ParseConstOp(const absl::string_view const_op_str, Block& block,
                             MLIRContext& ctx) {
      const LogicalResult parse_result =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc

      LogicalResult status = EvaluateOperation(inst, inputs, constants);
      results.assign(constants.begin(), constants.end());
      return status;
    }
    
    static bool init_hooks = ([] () {
      TensorFlowDialect::RegisterConstantFoldHook(ConstantFoldFallbackHook);
    }(), true);
    
    }  // namespace TF
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

    using ::testing::IsNull;
    using ::testing::NotNull;
    using ::testing::SizeIs;
    
    class ConvertAssetArgsTest : public ::testing::Test {
     protected:
      ConvertAssetArgsTest() {
        ctx_.loadDialect<func::FuncDialect, TF::TensorFlowDialect,
                         tf_saved_model::TensorFlowSavedModelDialect>();
      }
    
      // Parses `module_op_str` to create a `ModuleOp`. Checks whether the created
      // module op is valid.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

        "mlir::TFL::TFLDialect",
      ];
    }
    
    def LegalizeHloToTfPass : Pass<"tf-legalize-hlo", "ModuleOp"> {
      let summary = "Legalize from MHLO to the TF dialect";
      let dependentDialects = ["TF::TensorFlowDialect"];
      let constructor = "mlir::odml::CreateLegalizeHloToTfPass()";
    }
    
    def LegalizeHloToTfLitePass : Pass<"tfl-legalize-hlo", "mlir::ModuleOp"> {
      let summary = "Legalize from MHLO to the TFLite dialect";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc

                   << "': " << error.message() << "\n";
        return 1;
      }
    
      // Load the MLIR module.
      mlir::DialectRegistry registry;
      registry.insert<mlir::TF::TensorFlowDialect, mlir::TFL::TensorFlowLiteDialect,
                      mlir::arith::ArithDialect, mlir::func::FuncDialect>();
      mlir::MLIRContext context(registry);
    
      llvm::SourceMgr source_mgr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 03 00:14:05 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  9. 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)
  10. tensorflow/compiler/mlir/tfr/passes/canonicalize.cc

    void populateCanonicalizationPatterns(func::FuncOp func,
                                          RewritePatternSet &patterns) {
      MLIRContext *context = func.getContext();
      mlir::Dialect *tf = context->getLoadedDialect<mlir::TF::TensorFlowDialect>();
      // Load all official canonicalization patterns. Here we skip the
      // canonicalization of the ops in the tf dialect, because they couldn't
      // propagate the attributes correctly. These optimization will be played by
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top