Question from the TensorFlow test

In a Functional API type model, the output layer necessarily has a single neuron.