| 135 | } |
| 136 | |
| 137 | void JITExecutor::init_output_static_infer_desc() { |
| 138 | using namespace cg::static_infer; |
| 139 | auto&& mgr = owner_graph()->static_infer_manager(); |
| 140 | mgr.register_shape_infer( |
| 141 | output(0), ShapeInferDesc::make_identity(m_internal_graph->shape_infer())); |
| 142 | m_compiler->init_workspace_size_infer(this); |
| 143 | if (m_internal_graph->value_infer()) { |
| 144 | mgr.register_value_infer( |
| 145 | output(0), |
| 146 | ValueInferDesc::make_identity(m_internal_graph->value_infer())); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | void JITExecutor::scn_do_execute() { |
| 151 | if (m_executable == nullptr || m_args.need_update) { |
nothing calls this directly
no test coverage detected