I am implemeting neural network, but when I define my Dlnetwork the State is always a 0 table, also during the training process in fact after the training my nerual structure isn't learning anything:
Below I show only a part of my code
%GENERATOR
lgraph_G = layerGraph;
Generator = [
sequenceInputLayer(30,"Name","sequence")
fullyConnectedLayer(512,"Name","DENSE_G1")
reluLayer("Name","relu_1")
fullyConnectedLayer(512,"Name","DENSE_G2")
reluLayer("Name","relu_2")
fullyConnectedLayer(512,"Name","DENSE_G4")
reluLayer("Name","relu_3")
fullyConnectedLayer(1,"Name","DENSE_G5")
];
lgraph_G = addLayers(lgraph_G,Generator);
netG = dlnetwork(Generator);
%DISCRIMINATORE
Discriminator = layerGraph(sequenceInputLayer(2,"Name","sequence"));
combined_D = [
fullyConnectedLayer(100,"Name","fc")
leakyReluLayer(0.2)
fullyConnectedLayer(100,"Name","fc_1")
leakyReluLayer(0.2)
fullyConnectedLayer(1,"Name","fc_2")
softplusLayer("Name","softplus")
];
Discriminator = addLayers(Discriminator,combined_D);
Discriminator = connectLayers(Discriminator,'sequence','fc');
Discriminator = dlnetwork(Discriminator);
combinde_D = layerGraph(combined_D);
lgraph_D = layerGraph(Discriminator);
netD = dlnetwork(lgraph_D);