CPC G06F 8/427 (2013.01) [G06F 8/4441 (2013.01); G06F 8/71 (2013.01); G06N 20/00 (2019.01)] | 20 Claims |
1. A method comprising:
obtaining, using a hardware processor, a given segment of computer code;
modifying, using the hardware processor, the given segment of computer code to produce one or more inefficient versions of the given segment of computer code in comparison to the given segment of computer code;
generating, using the hardware processor, a code parse tree for the given segment of computer code and each inefficient version of the given segment of computer code;
generating, using the hardware processor, model embeddings based on the generated code parse trees; and
training, using the hardware processor, a diffusion model based on the generated model embeddings.
|