The Gospel of Thomas is a 'Sayings Gospel" made up of short pithy statements with almost no link between them other than the person saying them. Some of its is Gnosticism (IMO) while in other portions the voice of the Spirit can be heard.
The Infancy Gospel is a different kettle o' theological piscines! Once again, IMO, the Infancy Gospel is almost entirely gnostic.
Kiwimac