He became a priest at a young age, and after training himself at various places he entered into priesthood at Mt. Shunan-san Goshin-ji Temple located south of Chang'an.
幼くして、出家し諸所を遍歴した後、長安の南の終南山悟真寺に入寺する。