fix gen_worker_desc in hogwild (#23423)
fix gen_worker_desc in hogwild (#23423)

* fix gen_worker_desc in hogwild, it may cause error in transpile mode
* test=develop
luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,PaddlePaddle/Paddle,luotao1/Paddle