Method for the calculation resource-saving semantic segmentation of image data of an imaging sensor with the aid of an artificial neural network, in particular, of a convolutional neural network, the artificial neural network including an encoder path, a decoder path, the encoder path transitioning into the decoder path, the transition taking place via a discriminative path, the following steps taking place in the discriminative path: dividing an input tensor as a function of a division function into at least one first slice tensor and at least one second slice tensor, the input tensor originating from the encoder path; connecting the at least one first slice tensor to the at least one second slice tensor as a function of a connection function in order to obtain a class tensor; and outputting the class tensor to the decoder path of the neural network.
Method, artificial neural network, device, computer program and machine-readable memory medium for the semantic segmentation of image data