| 68 | } |
| 69 | |
| 70 | ASTPtr gen_data_ast(size_t input_id, const JITExecutor::Args::Data& n) { |
| 71 | auto res = ssprintf( |
| 72 | "(static_cast<%s*>(data.inputs[%zu]))[offset_%zu]", |
| 73 | dtype_to_cstr(n.layout.dtype), input_id, input_id); |
| 74 | return ASTPtr::make<VariableAST>(res); |
| 75 | } |
| 76 | |
| 77 | //! generate code to access input values in the kernel |
| 78 | void gen_input_code( |
no test coverage detected