Output larger than specified

When I double the number of layers in the densely connected neural network, my network’s output is increased despite the output neuron number being the same. Could someone help me debug my neural network? Thank you

By “increased” do you mean the value range or the number of outputs, i.e. tensor shape?

Can we see the class?

My Apologies. I merely forgot to change the network model in the inference script.