keras/src/layers/core/dense.py/Dense/compute_output_shape
class Dense:    def compute_output_shape(self, input_shape):
        output_shape = list(input_shape)
        output_shape[-1] = self.units
        return tuple(output_shape)