public void RequireFlat() { if (_flat == null) { throw new NeuralNetworkError( "Must call finalizeStructure before using this network."); } }