Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 41 for registry_ (0.09 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/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)
  4. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

    static void RegisterMlirInputDialects(mlir::DialectRegistry& registry) {
      // TODO(b/259459405): Remove support for stablehlo as an input.
      registry
          .insert<mlir::arith::ArithDialect, mlir::func::FuncDialect,
                  mlir::TF::TensorFlowDialect, mlir::stablehlo::StablehloDialect,
                  mlir::quant::QuantizationDialect>();
      mlir::func::registerAllExtensions(registry);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

        // This is a brief description of the pass.
        return "Add DumpTensor ops after quantizable ops";
      }
    
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TF::TensorFlowDialect>();
        registry.insert<quant::QuantizationDialect>();
        registry.insert<quantfork::QuantizationForkDialect>();
      }
    
     private:
      void runOnOperation() override;
    
      Option<DebuggerType> debugger_type_{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

        xla::CompileOnlyClient* client,
        XlaCompiler::CompilationResult* compilation_result) {
      mlir::DialectRegistry registry;
      mlir::RegisterAllTensorFlowDialects(registry);
      mlir::mhlo::registerAllMhloDialects(registry);
      mlir::MLIRContext context(registry);
    
      mlir::OwningOpRef<mlir::ModuleOp> mlir_module;
      TF_RETURN_IF_ERROR(DeserializeMlirModule(mlir_computation.mlir_module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

      }
      StringRef getDescription() const final {
        return "Legalize TF_XlaCallModule Op to stablehlo";
      }
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<stablehlo::StablehloDialect, vhlo::VhloDialect,
                        quant::QuantizationDialect, shape::ShapeDialect>();
      }
    
      void runOnOperation() override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

    // passes. Currently, per-channel quantization only supports 1D results.
    class PreprocessOpPass
        : public PassWrapper<PreprocessOpPass, OperationPass<ModuleOp>> {
      void getDependentDialects(DialectRegistry& registry) const override {
        registry.insert<TF::TensorFlowDialect, QuantizationDialect,
                        quantfork::QuantizationForkDialect>();
      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(PreprocessOpPass)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

        : public impl::ReduceWhileOperandsPassBase<ReduceWhileOperandsPass> {
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(ReduceWhileOperandsPass)
    
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TFL::TensorFlowLiteDialect, TF::TensorFlowDialect>();
      }
      void runOnOperation() override;
    };
    
    LogicalResult FindImplicityProducers(
        const std::vector<uint64_t> &explicitly_consumed_ids,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc

      StringRef getDescription() const final {
        return "Fallback TF-Quantization-unsupported ops to TFLite Flex ops.";
      }
    
      void getDependentDialects(DialectRegistry &registry) const override {
        registry.insert<TFL::TensorFlowLiteDialect>();
      }
    
     private:
      // The mode of TF Quantization, might indicate different users/devices.
      Option<std::string> mode_{*this, "mode",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top