Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 445 for FuncOp (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

        module->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
        return failure();
      }
    
      SmallVector<func::FuncOp, 2> session_init_funcs =
          tf_saved_model::GetInitializerFunctions(module);
      func::FuncOp session_init_func =
          session_init_funcs.empty() ? nullptr : session_init_funcs[0];
    
      TF::ResourceAnalyzer analyzer(module, /*skip_session_init=*/true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc

          total_element_count += input_type.getNumElements();
        }
      }
      return total_element_count;
    }
    
    struct GetOpCostPass
        : mlir::PassWrapper<GetOpCostPass, OperationPass<func::FuncOp>> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GetOpCostPass)
    
      llvm::StringRef getArgument() const final { return "tfl-get-op-cost"; }
      llvm::StringRef getDescription() const final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/tac_pass.h

    // as it provides access to the TAC module.
    template <typename T>
    class TacFunctionPass : public TacPass<func::FuncOp> {
     public:
      using TacPass<func::FuncOp>::TacPass;
    
      ~TacFunctionPass() override = default;
    
      mlir::func::FuncOp getFunction() { return getOperation(); }
    
      virtual void runOnFunction() = 0;
    
      void runOnOperation() final {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

        }
      }
    
      // TODO(bfontain): Check that the region here is the region
      // of the loop body func.
      // Find the FuncOp for the surrounding while loop body.
      func::FuncOp loop_body_func =
          (*forward_pass_ops.begin())->getParentOfType<func::FuncOp>();
    
      // merged_set will keep track of which ops are to be avoided when gather ops
      // for inclusion into the four extracted functions.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

        * A tensor is quantized using a `func::FuncOp` whose name contains
          "uniform_quantize". The first argument is the tensor to be quantized,
          the second argument is the zero point constant (element type: int) and
          the third argument is the inverse scale constant (element type: float).
        * A tensor is dequantized using a `func::FuncOp` whose name contains
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_test_passes.td

    }
    
    def TestResourceAliasAnalysis : Pass<"tf-test-resource-alias-analysis", "mlir::func::FuncOp"> {
      let summary = "Add remarks based on resource alias analysis result, for "
        "testing purpose.";
      let constructor = "::mlir::tf_test::CreateTestResourceAliasAnalysisPass()";
    }
    
    def TestClusteringPolicyPass : Pass<"tf-test-clustering-policy", "mlir::func::FuncOp"> {
      let summary = "Test pass for clustering based on the user defined policy";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 00:21:29 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

        ModuleOp module,
        llvm::SmallDenseMap<StringRef, FuncToRewrite>& funcs_to_rewrite) {
      // Find functions containing communication ops.
      SmallVector<func::FuncOp, 4> funcs_to_visit;
      for (func::FuncOp func : module.getOps<func::FuncOp>()) {
        FuncToRewrite func_to_rewrite{/*original=*/func, /*control_flow_ops=*/{},
                                      /*control_flow_blocks=*/{},
                                      /*clone=*/nullptr};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/ir/Passes.td

    include "mlir/Pass/PassBase.td"
    
    def QuantConvertConst : Pass<"quant-convert-const", "func::FuncOp"> {
      let summary = "Converts constants followed by qbarrier to actual quantized "
                    "values";
      let constructor = "mlir::quantfork::createConvertConstPass()";
    }
    
    def QuantConvertSimulatedQuant
        : Pass<"quant-convert-simulated-quantization", "func::FuncOp"> {
      let summary = "Converts training-time simulated quantization ops to "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/group_by_dialect.cc

    class GroupByDialectPass
        : public impl::GroupByDialectPassBase<GroupByDialectPass> {
     public:
      void runOnOperation() override;
    
     private:
      void processFunction(mlir::func::FuncOp func, int& counter,
                           llvm::SmallDenseSet<StringRef>& dialects,
                           Operation* module);
      void processRegion(mlir::Region& region, int& counter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h

    // whose value is broacast to all replicas.
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    CreateHoistBroadcastReadPass();
    
    // Creates a pass that moves broadcasts from TF host ops to XLA code, encoded as
    // XlaAllReduces. This enables use of the device network for broadcasts, which
    // is faster.
    std::unique_ptr<mlir::OperationPass<mlir::func::FuncOp>>
    CreateXlaBroadcastPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top