Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for registry_ (0.12 sec)

  1. tensorflow/compiler/mlir/lite/utils/tftext_utils_test.cc

    void Register(const std::string& op_name, OpRegistry* registry) {
      registry->Register([op_name](OpRegistrationData* op_reg_data) -> Status {
        op_reg_data->op_def.set_name(op_name);
        return absl::OkStatus();
      });
    }
    
    }  // namespace
    
    TEST(TfTextUtilsTest, TestTfTextRegistered) {
      std::unique_ptr<OpRegistry> registry(new OpRegistry);
      Register("WhitespaceTokenizeWithOffsets", registry.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:14:37 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf_mlir_opt_main.cc

      tensorflow::tfrt_compiler::
          RegisterNonTPULowerClusterToRuntimeOpsPassPipeline();
    
      mlir::DialectRegistry registry;
      mlir::RegisterCommonToolingDialects(registry);
    
      return failed(
          mlir::MlirOptMain(argc, argv, "TensorFlow pass driver\n", registry));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/odml_to_stablehlo.cc

      return absl::OkStatus();
    }
    
    tensorflow::Status RunConverter(const PassPipelineCLParser& pass_pipeline) {
      DialectRegistry registry;
      registerAllDialects(registry);
      RegisterAllTensorFlowDialects(registry);
      mhlo::registerAllMhloDialects(registry);
      stablehlo::registerAllDialects(registry);
      registry.insert<mlir::func::FuncDialect, mlir::tf_type::TFTypeDialect,
                      mlir::quant::QuantizationDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    }
    
    static TranslateFromMLIRRegistration mlir_to_graph_translate(
        /*name=*/"mlir-to-graph", /*description=*/"convert mlir to graph",
        MlirToGraphTranslateFunction, [](DialectRegistry& registry) {
          mlir::RegisterAllTensorFlowDialects(registry);
        });
    
    static LogicalResult MlirToGraphdefTranslateFunction(
        ModuleOp module, llvm::raw_ostream& output) {
      if (!module) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // shape assignment in shape_inference.
    std::unique_ptr<OperationPass<func::FuncOp>>
    CreateReplicateTensorListInitOpsPass();
    
    // Performs Shape Inference on the TensorFlow dialect using the global registry.
    std::unique_ptr<OperationPass<ModuleOp>> CreateTFShapeInferencePass(
        ArrayRef<ArrayRef<int64_t>> input_shapes = {});
    
    // Performs TF.data optimizations.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  6. 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>(
          mlir::parseSourceString<mlir::ModuleOp>(kMLIR, &context));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/register_common_dialects.cc

    namespace mlir {
    
    void RegisterCommonToolingDialects(mlir::DialectRegistry& registry) {
      mlir::RegisterAllTensorFlowDialects(registry);
      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>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 22:45:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc

    }
    
    void RuntimeFallbackExecutor::Prepare(llvm::StringRef mlir_input) {
      // We only support IR written in the Tensorflow dialect.
      mlir::DialectRegistry registry;
      mlir::RegisterAllTensorFlowDialects(registry);
      mlir::MLIRContext context(registry);
    
      llvm::SourceMgr source_mgr;
      source_mgr.AddNewSourceBuffer(
          llvm::MemoryBuffer::getMemBuffer(mlir_input, "test_ir"), llvm::SMLoc());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top