| 30 | |
| 31 | template<typename Context> |
| 32 | std::unique_ptr<ep::primitive::CopyNd> NewCopyNdPrimitive(Context* ctx) { |
| 33 | const auto& in_arg_pair = ctx->inputs().front(); |
| 34 | const int64_t ndims = |
| 35 | ctx->TensorDesc4ArgNameAndIndex(in_arg_pair.first, in_arg_pair.second)->shape().NumAxes(); |
| 36 | return ep::primitive::NewPrimitive<ep::primitive::CopyNdFactory>(ctx->device_type(), ndims); |
| 37 | } |
| 38 | |
| 39 | auto FillPrimitiveExists() { |
| 40 | return hob::make_custom("FillPrimitiveExists", [](const user_op::KernelRegContext& ctx) { |
no test coverage detected