Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RegisterCostFunction (3.11 sec)

  1. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

        RegisterCostFunction<mlir::TF::GatherV2Op>(*registry, InferGatherV2Cost);
        RegisterCostFunction<mlir::TF::SparseSegmentSumOp>(
            *registry, InferSparseSegmentOpCost<mlir::TF::SparseSegmentSumOp>);
        RegisterCostFunction<mlir::TF::SparseSegmentMeanOp>(
            *registry, InferSparseSegmentOpCost<mlir::TF::SparseSegmentMeanOp>);
        RegisterCostFunction<mlir::TF::SparseSegmentSqrtNOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.h

    };
    
    using CostFunction =
        std::function<int64_t(const CostContext&, mlir::Operation*)>;
    
    void RegisterCostFunction(absl::string_view op_name,
                              CostFunction cost_function);
    
    template <typename OpType, typename F>
    void RegisterCostFunction(F f) {
      RegisterCostFunction(
          OpType::getOperationName().str(),
          [f = std::move(f)](const CostContext& context, mlir::Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top