Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for EvaluateCost (0.08 sec)

  1. 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)
Back to top