Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 293 for runOnOperation (0.18 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

      void getDependentDialects(DialectRegistry &registry) const override {
        RegisterAllTensorFlowDialects(registry);
      }
    
      void runOnOperation() override;
    };
    
    }  // namespace
    
    void LegalizeTFGToTFE::runOnOperation() {
      MLIRContext &context = getContext();
      ModuleOp module = getOperation();
    
      DenseSet<StringRef> func_symbols;
      for (auto &op : module.getBodyRegion().getOps()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

                              replication_attr);
      *caller = tf_caller;
      return LogicalResult::success();
    }
    
    void EmbeddingSequencingPass::runOnOperation() {
      LOG(INFO) << "EmbeddingSequencingPass::runOnOperation()";
      ModuleOp module = getOperation();
    
      llvm::SetVector<Operation*> forward_pass_ops;
      llvm::SetVector<Operation*> backward_pass_ops;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc

      // Constructor used by manually creating the pass.
      explicit PrepareQuantizePass(const quant::QuantizationSpecs& quant_specs)
          : use_quantization_flags_(false), quant_specs_(quant_specs) {}
    
      void runOnOperation() override;
    
     private:
      // Set the quantization parameters of the input nodes. These parameters are
      // converted from the user specified input value ranges. The input nodes with
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

      // processing the function for dynamic range quantization. Therefore, this
      // method preprocess the function to remove all stats ops.
      void removeAllStatsOp(func::FuncOp func);
    
      void runOnOperation() override;
    
     private:
      // Keeps track of ops whose inputs cannot be quantized due to not meeting the
      // minimum_elements_for_weights threshold. Prevents emitting duplicate
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

        populateWithGenerated(pattern_list);
        pattern_list.add<SimplifyBroadcastReshape>(context);
        patterns = std::move(pattern_list);
        return success();
      }
    
      void runOnOperation() override {
        auto func = getOperation();
        if (failed(applyPatternsAndFoldGreedily(func, patterns)))
          signalPassFailure();
      }
    
      FrozenRewritePatternSet patterns;
    };
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass(
          const ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass& other) =
          default;
    
     private:
      void runOnOperation() override;
    };
    
    // Creates a unique stablehlo function name based on op order.
    std::string CreateStablehloFunctionName(const int id) {
      return Twine("_stablehlo_main_").concat(std::to_string(id)).str();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

    struct ExecutorIslandCoarseningPass
        : public impl::ExecutorIslandCoarseningPassBase<
              ExecutorIslandCoarseningPass> {
      void runOnOperation() override;
    };
    
    void ExecutorIslandCoarseningPass::runOnOperation() {
      // Temporary datastructure to keep operands and results for each island.
      // We define it here to grow and reuse the storage for the duration of the
      // pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

    typedef std::unordered_map<std::string, TF::TPUReplicateMetadataOp> MetadataMap;
    
    struct TPUValidateInputsPass
        : public impl::TPUValidateInputsPassBase<TPUValidateInputsPass> {
      void runOnOperation() override;
    };
    bool IsTpuRegularOp(Operation* op) {
      static auto* ops = [] {
        llvm::SmallDenseSet<mlir::TypeID, 32>* ops_set =
            new llvm::SmallDenseSet<mlir::TypeID, 32>{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc

      llvm::StringRef getArgument() const final { return "tfl-pick-subgraphs"; }
      llvm::StringRef getDescription() const final {
        return "Pick the best subgraphs to minimize the overall total costs.";
      }
      void runOnOperation() override;
    
      std::unordered_map<std::string, std::vector<func::FuncOp>>
      CollectSubgraphFuncs(ModuleOp module);
    
      void BuildSubgraphs(
          func::FuncOp main_fn,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 15:10:02 UTC 2022
    - 19.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    struct ExtractHeadTailOutsideCompilationPass
        : public impl::ExtractHeadTailOutsideCompilationPassBase<
              ExtractHeadTailOutsideCompilationPass> {
      void runOnOperation() override;
    };
    
    void ExtractHeadTailOutsideCompilationPass::runOnOperation() {
      auto& side_effect_analysis = getAnalysis<mlir::TF::SideEffectAnalysis>();
      // Get runtime devices information from the closest parent module.
      auto module = getOperation();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top