Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for GetOperation (0.2 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

      }
    };
    
    // TODO: b/264218457 - Refactors the current file to parse preset quantization
    // options and allow modular control of quantization specs.
    void QuantizeWeightPass::runOnOperation() {
      func::FuncOp func = getOperation();
      MLIRContext* ctx = func.getContext();
      RewritePatternSet patterns(ctx);
    
      patterns.add<QuantizeWeight>(ctx, quantization_component_spec_);
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

                  << key;
              break;
            }
          }
        }
        return attrs;
      }
    };
    
    void TflToStablehloPass::runOnOperation() {
      func::FuncOp fn = getOperation();
      OpBuilder builder(fn.getContext());
      fn.walk([&](TFL::CustomOp custom_op) {
        builder.setInsertionPoint(custom_op);
        const uint8_t* option_buf = reinterpret_cast<const uint8_t*>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

                                  int activation_number_of_bits = 8) {
      if (llvm::isa<TFL::LSTMOp>(op.getOperation())) {
        lstm_variant->op_code = tflite::BuiltinOperator_LSTM;
      } else if (llvm::isa<TFL::UnidirectionalSequenceLSTMOp>(op.getOperation())) {
        lstm_variant->op_code =
            tflite::BuiltinOperator_UNIDIRECTIONAL_SEQUENCE_LSTM;
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

          rewriter, input_val, result_type, unique_func_name, func_input_arg);
    
      // Fills the body.
      Operation* last_op_in_func =
          quantization_operations_func(rewriter, func_op.getOperation(),
                                       func_input_arg, result_type, quant_type);
    
      // Connect the function in the existing graph.
      auto end_call_op = FinalizeFunctionRegister(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

      }
    
     public:
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LiftTfliteFlexOpsPass)
    
      void runOnOperation() override {
        MLIRContext* context = &getContext();
        func::FuncOp func = getOperation();
    
        mlir::RewritePatternSet patterns(context);
        AddLiftTfliteFlexOpsPatterns(context, patterns);
        if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) {
          signalPassFailure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

        XlaCallModuleDeserializationPassBase::getDependentDialects(registry);
        mlir::func::registerAllExtensions(registry);
      }
    
      void runOnOperation() override {
        ModuleOp module = getOperation();
        SymbolTableCollection symbol_tables;
        WalkResult result = module.walk([&](XlaCallModuleOp op) {
          if (failed(DeserializeXlaCallModule(&getContext(), symbol_tables, module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc

    };
    
    static PassRegistration<QuantizeWeightsPass> pass;
    
    void QuantizeWeightsPass::runOnOperation() {
      MLIRContext* ctx = &getContext();
      auto module_op = getOperation();
      RewritePatternSet patterns(ctx);
    
      patterns.add<QuantizeConstWeights>(ctx, quant_options_);
    
      FrozenRewritePatternSet frozen_patterns(std::move(patterns));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

      generator_op->replaceAllUsesWith(generator_region->getResults());
      generator_op->erase();
    
      return success();
    }
    
    void FunctionalControlFlowToRegions::runOnOperation() {
      ModuleOp module = getOperation();
      auto result = module.walk([&](Operation* op) {
        if (IfOp if_op = llvm::dyn_cast<IfOp>(op)) {
          if (failed(ConvertIfOp(if_op))) {
            op->emitOpError() << "failed to convert to region form";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

                  << " outside compilation regions.";
      }
    }
    
    void MarkOpsForOutsideCompilation::runOnOperation() {
      auto module = getOperation();
      const Dialect* tf_dialect = getContext().getLoadedDialect("tf");
      if (!tf_dialect) {
        getOperation().emitError() << "'tf' dialect is not registered";
        return signalPassFailure();
      }
      RewritePatternSet patterns(&getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

      return mlir::TF::RemoveSingletonParallelExecuteOp(parallel_execute, &builder);
    }
    
    void TPUResourceReadsWritesPartitioningPass::runOnOperation() {
      llvm::SmallVector<tf_device::ClusterFuncOp, 4> cluster_funcs;
      getOperation()->walk([&cluster_funcs](tf_device::ClusterFuncOp cluster_func) {
        cluster_funcs.push_back(cluster_func);
      });
      for (tf_device::ClusterFuncOp cluster_func : cluster_funcs)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top