Unless the code the AI generated is a copy of copyrighted code, of course. Then it would be copyright infringement. I can cause the AI to spit out code that _I_ own the copyright to, because it was trained on my code too. If someone used that code without including attribution to me (the requirement of the license I release my code under), that would be copyright infringement. Do you understand what I mean?