TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS: abstract simplified (17717609)

From WikiPatents
Jump to navigation Jump to search
  • This abstract for appeared for patent application number 17717609 Titled 'TRANSLATING BETWEEN PROGRAMMING LANGUAGES INDEPENDENTLY OF SEQUENCE-TO-SEQUENCE DECODERS'

Simplified Explanation

This abstract describes techniques for translating a source code snippet from one programming language to another without using sequence-to-sequence decoding. The source code is processed using a transformer network, where an encoder generates an embedding of the code. This embedding is then processed using an all-pair attention layer to generate an attended embedding. Finally, an output layer transforms the attended embedding into data that represents the translation of the source code into the second programming language.


Original Abstract Submitted

Techniques are described herein for translating a source code snippet from a first programming language to a second programming language independently of sequence-to-sequence decoding. In various implementations, the source code snippet written in the first programming language may be processed using an encoder portion of a transformer network to generate an embedding of the source code snippet. The embedding of the source code snippet may be processed using an all-pair attention layer to generate an attended embedding of the source code snippet. The attended embedding of the source code snippet may be processed using an output layer to generate, by way of a single transformation of the attended embedding of the source code snippet, data indicative of a translation of the source code snippet in the second programming language.