| 299 | } |
| 300 | |
| 301 | void ExternCOprRunner::get_output_var_shape( |
| 302 | const TensorShapeArray& inp_shape, TensorShapeArray& out_shape) const { |
| 303 | SmallVector<MGBTensorShape> c_inp(inp_shape.size()), c_out(out_shape.size()); |
| 304 | for (size_t i = 0; i < inp_shape.size(); ++i) { |
| 305 | c_inp[i] = tensor_shape_to_c(inp_shape[i]); |
| 306 | } |
| 307 | m_desc->infer_shape(m_desc.get(), c_inp.data(), c_out.data()); |
| 308 | for (size_t i = 0; i < out_shape.size(); ++i) { |
| 309 | out_shape[i] = tensor_shape_from_c(c_out[i]); |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | void ExternCOprRunner::init_output_dtype() { |
| 314 | if (!m_desc->infer_dtype) { |
nothing calls this directly
no test coverage detected