| 51 | } |
| 52 | |
| 53 | void force_target_to_graph(Graph &g, Target target) |
| 54 | { |
| 55 | auto &nodes = g.nodes(); |
| 56 | for (auto &node : nodes) |
| 57 | { |
| 58 | if (node) |
| 59 | { |
| 60 | node->set_assigned_target(target); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | auto &tensors = g.tensors(); |
| 65 | for (auto &tensor : tensors) |
| 66 | { |
| 67 | if (tensor) |
| 68 | { |
| 69 | tensor->desc().target = target; |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | PassManager create_default_pass_manager(Target target, const GraphConfig &cfg) |
| 75 | { |
no test coverage detected