Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HasCostFunctionRegistered (0.18 sec)

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

      explicit CostFunctionRegistration(
          std::function<int64_t(const CostContext&, OpType)> cost_function) {
        RegisterCostFunction<OpType>(std::move(cost_function));
      }
    };
    
    bool HasCostFunctionRegistered(absl::string_view op_name);
    
    }  // namespace tfrt_compiler
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc

                              CostFunction cost_function) {
      RegisterCostFunction(GetCostFunctionRegistry(), op_name,
                           std::move(cost_function));
    }
    
    bool HasCostFunctionRegistered(absl::string_view op_name) {
      return GetCostFunctionRegistry().contains(op_name);
    }
    
    int64_t CostAnalysis::GetCost(mlir::Operation* op) const {
      assert(cost_map_.count(op) > 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top