Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for registry_ (0.12 sec)

  1. tensorflow/compiler/mlir/tfrt/backend_compiler.h

    #include "tensorflow/core/tfrt/runtime/runtime.h"
    
    namespace tensorflow {
    
    class BackendCompiler {
     public:
      virtual ~BackendCompiler();
    
      virtual void GetDependentDialects(mlir::DialectRegistry& registry) const {}
    
      // Compile the `module` in TF dialect. The result module should be also in TF
      // dialect.
      virtual absl::Status CompileTensorflow(
          tfrt_stub::ModelRuntimeContext& model_context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 10 10:31:36 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

        : public impl::LowerVariableOpsToMlProgramPassBase<
              LowerVariableOpsToMlProgramPass> {
      explicit LowerVariableOpsToMlProgramPass() = default;
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<mlir::tf_saved_model::TensorFlowSavedModelDialect,
                        ml_program::MLProgramDialect>();
      }
      void runOnOperation() override {
        auto module = getOperation();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/odml_converter_main.cc

      mlir::DialectRegistry registry;
      registry.insert<mlir::func::FuncDialect, mlir::stablehlo::StablehloDialect,
                      mlir::TFL::TFLDialect, mlir::arith::ArithDialect,
                      mlir::TF::TensorFlowDialect, mlir::chlo::ChloDialect>();
    
      return failed(
          mlir::MlirOptMain(argc, argv, "ODML Converter Driver\n", registry));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/utils/utils.cc

      }
    
      if (input_mlir) {
        mlir::DialectRegistry registry;
        registry.insert<mlir::TFL::TensorFlowLiteDialect, mlir::arith::ArithDialect,
                        mlir::func::FuncDialect>();
        mlir::func::registerAllExtensions(registry);
        context->appendDialectRegistry(registry);
        source_mgr->AddNewSourceBuffer(std::move(buffer), llvm::SMLoc());
        return mlir::OwningOpRef<mlir::ModuleOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 03:47:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/lite/python/converter_python_api.h

    // Sparsifies model to encode sparse tensors with proper format. Throws error if
    // sparsification fails.
    PyObject* MlirSparsifyModel(PyObject* data);
    
    // Registers the given custom opdefs to TensorFlow global op registry.
    PyObject* RegisterCustomOpdefs(PyObject* list);
    
    // Returns the collected TFLite conversion errors.
    std::vector<std::string> RetrieveCollectedErrors();
    
    // Returns MLIR string dump of the given Flatbuffer model.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 18:18:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

                                   std::vector<TensorShape>& arg_shapes,
                                   tpu::TPUCompileMetadataProto& metadata_proto) {
      mlir::DialectRegistry registry;
      mlir::RegisterCommonToolingDialects(registry);
      mlir::MLIRContext context(registry);
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
    
      TF_RETURN_IF_ERROR(
          DeserializeMlirModule(mlir_module_str, &context, &mlir_module));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. .github/workflows/sigbuild-docker-presubmit.yml

              tags: |
                gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
              cache-from: |
                type=registry,ref=tensorflow/build:latest-${{ matrix.python-version }}
                type=registry,ref=gcr.io/tensorflow-sigs/build:${{ github.event.number }}-${{ matrix.python-version }}
              cache-to: type=inline
          -
            name: Add a comment with the pushed containers
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 18:43:43 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo_translate.cc

      llvm::cl::ParseCommandLineOptions(argc, argv,
                                        "TF Saved Model to Stablehlo converter\n");
    
      mlir::DialectRegistry registry;
      RegisterAllTensorFlowDialects(registry);
      mlir::MLIRContext context(registry);
      context.loadAllAvailableDialects();
    
      bool is_input_mlir_module = absl::EndsWith(input_path, ".mlir");
      std::vector<std::string> exported_model_signatures_in_vector =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/metrics/error_collector_inst_test.cc

    using tsl::StatusOr;
    
    // MockSuccessPass reports errors but doesn't fail.
    class MockSuccessPass
        : public PassWrapper<MockSuccessPass, OperationPass<ModuleOp>> {
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect>();
      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MockSuccessPass)
    
      explicit MockSuccessPass() = default;
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top