Patent law generally considers the inventor as the first owner of the invention. The inventor is the person who creates the invention. In the case of autonomous AI generating an invention, there is no legal owner as the AI technology cannot own the invention.