| 99 | /* ================ global functions ================ */ |
| 100 | |
| 101 | SymbolVarArray gopt::optimize_for_inference( |
| 102 | const SymbolVarArray& dest_vars, const OptimizeForInferenceOptions& opt) { |
| 103 | return gopt::GraphOptimizer() |
| 104 | .add_preset_passes( |
| 105 | false, &opt, &dest_vars[0].node()->owner_graph()->options()) |
| 106 | .apply({dest_vars}) |
| 107 | .endpoint_vars(); |
| 108 | } |
| 109 | |
| 110 | SymbolVarArray gopt::layout_transform( |
| 111 | const SymbolVarArray& dest_vars, GraphTuningOptions::Target target) { |
no test coverage detected