Neural Network Diagram Foward Function