- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EvaluateCost (0.13 sec)
-
tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.cc
max_arg_size_ = std::max(max_arg_size_, GetRankedTensorSize(type)); } } } void CostAnalysis::AnalyzeBlock(mlir::Block* block) { for (auto& op : *block) { EvaluateCost(&op); } } void CostAnalysis::EvaluateCost(mlir::Operation* op) { if (auto cost_function = mlir::dyn_cast<tfrt::compiler::CostFunctionInterface>(op)) { cost_map_[op] = cost_function.cost(); return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/analysis/cost_analysis.h
AnalyzeBlock(&func_op.front()); } int64_t GetCost(mlir::Operation* op) const; private: void AnalyzeArguments(mlir::func::FuncOp func_op); void AnalyzeBlock(mlir::Block* block); void EvaluateCost(mlir::Operation* op); int64_t max_arg_size_ = 1; llvm::DenseMap<mlir::Operation*, int64_t> cost_map_; const tfrt_stub::CostRecorder* cost_recorder_; }; struct CostContext {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 3.1K bytes - Viewed (0)