Fast and accurate edge resource scaling for 5G/6G networks with distributed deep neural networks