Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 138 for registry_ (0.12 sec)

  1. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        : public PassWrapper<RaiseToTFOpsPass, OperationPass<func::FuncOp>> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(RaiseToTFOpsPass)
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TFRDialect, TF::TensorFlowDialect, scf::SCFDialect,
                        arith::ArithDialect, func::FuncDialect>();
      }
    
      explicit RaiseToTFOpsPass(std::optional<ModuleOp> tfr_module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

      StringRef getDescription() const final {
        return "Constant folds BroadcastInDimOp before binary elementwise ops";
      }
      void getDependentDialects(::mlir::DialectRegistry &registry) const override {}
    
      void runOnOperation() override {
        RewritePatternSet patterns(&getContext());
        patterns.add<FoldBroadcastInDimBeforeMulOp>(&getContext());
        patterns.add(ConstantFoldMul);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        const std::vector<std::string>& ordered_output_arrays,
        bool experimental_prune_unreachable_nodes_unconditionally,
        const bool disable_vhlo_to_stablehlo) {
      mlir::DialectRegistry registry;
      registry.insert<mlir::arith::ArithDialect, mlir::func::FuncDialect,
                      mlir::quant::QuantizationDialect,
                      mlir::quantfork::QuantizationForkDialect,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

    namespace mlir {
    namespace TFDevice {
    namespace {
    
    struct EmbeddingSequencingPass
        : public ::impl::EmbeddingSequencingPassBase<EmbeddingSequencingPass> {
      void getDependentDialects(mlir::DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect>();
      }
    
      void runOnOperation() override;
    };
    
    template <typename InputContainer>
    std::vector<Type> GetValueTypes(const InputContainer& input) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/saved_model/saved_model_test.cc

      std::string saved_model_mlir_path = tensorflow::GetDataDependencyFilepath(
          "tensorflow/compiler/mlir/tfrt/tests/saved_model/testdata/test.mlir");
    
      mlir::DialectRegistry registry;
      mlir::RegisterAllTensorFlowDialects(registry);
      mlir::MLIRContext context(registry);
      auto module =
          mlir::parseSourceFile<mlir::ModuleOp>(saved_model_mlir_path, &context);
      ASSERT_TRUE(module);
    
      std::vector<std::string> inputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 13 01:17:29 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.cc

    PYBIND11_MODULE(mlir_wrapper, m) {
      m.def("preloadTensorFlowDialects", [](mlir::MLIRContext &context) {
        mlir::DialectRegistry registry;
        mlir::RegisterAllTensorFlowDialects(registry);
        context.appendDialectRegistry(registry);
        context.loadAllAvailableDialects();
      });
    
      m.def("verify", [](std::string input) {
        llvm::SourceMgr SM = llvm::SourceMgr();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 08:41:42 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc

          "tensorflow/compiler/mlir/tfrt/tests/analysis/testdata/test.mlir");
    
      mlir::DialectRegistry registry;
      tfrt::RegisterTFRTDialects(registry);
      registry.insert<tfrt::fallback_async::FallbackAsyncDialect>();
      registry.insert<tfrt::fallback_sync::FallbackSyncDialect>();
      mlir::MLIRContext context(registry);
      auto module =
          mlir::parseSourceFile<mlir::ModuleOp>(saved_model_mlir_path, &context);
      ASSERT_TRUE(module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 21 22:52:12 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/pywrap_tensorflow_to_stablehlo_lib.cc

        const std::vector<std::string>& exported_model_signatures,
        const std::vector<std::string>& tag_names,
        absl::string_view input_arg_shapes_str) {
      mlir::DialectRegistry registry;
      RegisterAllTensorFlowDialects(registry);
      mlir::MLIRContext context(registry);
      context.loadAllAvailableDialects();
    
      auto module =
          TfToStablehlo(input_path, &context, exported_model_signatures, tag_names,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/register_common_dialects_test.cc

    #include "mlir/IR/DialectRegistry.h"  // from @llvm-project
    
    namespace mlir {
    namespace {
    
    TEST(RegisterCommonDialectsTest, DoesntCrash) {
      mlir::DialectRegistry registry;
    
      mlir::RegisterCommonToolingDialects(registry);
    
      EXPECT_FALSE(registry.getDialectNames().empty());
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 21 20:13:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc

        return "Convert Fake Quant op to quant.qcast and quant.dcast pairs";
      }
    
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect>();
        registry.insert<quant::QuantizationDialect>();
        registry.insert<quantfork::QuantizationForkDialect>();
      }
    
      void runOnOperation() override;
    };
    
    static PassRegistration<ConvertFakeQuantToQdqPass> pass;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 15 00:56:15 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top