Valid Layer Scheduling Order in a Neural Network Graph

Given a neural network computation graph Network, where Layers are added via addLayer and data dependencies between Layers are set via addLayerOutput (the output of Layer u is an input of Layer ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: