The subject-matter of the present disclosure relates to a computer-implemented method of training an end-to-end network of an autonomy stack of an AV to generate a trajectory for the AV from sensor inputs. The computer-implemented method comprises: providing an end-to-end network comprising a…