generateAllLayers
Generates all layer code in topological order with numerical accuracy guarantees. Preserves execution order from ComputeGraph. Performs comprehensive validation before code generation.
Enhanced for numerical accuracy by:
Using accuracy-enhanced layer generation methods
Ensuring consistent floating-point behavior with DefaultCpuOps
Validating numerical stability of generated operations
Implementing direct output writing optimization
Return
List of LayerCode objects in execution order