================ EnableTensorCorePass =============== */
| 188 | |
| 189 | /* ================ EnableTensorCorePass =============== */ |
| 190 | VarNode* EnableTensorCorePass::on_graph_endpoint_var( |
| 191 | VarNode* new_var, VarNode* orig_var) const { |
| 192 | if (!orig_var->shape().eq_shape(new_var->shape())) { |
| 193 | return RelayoutPlaceholder::make( |
| 194 | new_var, |
| 195 | ReformatKey{TensorFormats::NCHWc32, TensorFormats::NCHWc4}) |
| 196 | .node(); |
| 197 | } |
| 198 | return new_var; |
| 199 | } |
| 200 | |
| 201 | VarNode* EnableTensorCorePass::trans_to_nchw32(VarNode* new_inp) { |
| 202 | const TensorShape& shape = new_inp->shape(); |
nothing calls this directly
no test coverage detected