Skip to content

rebuild draw()'s traversal to follow forward() execution order, not declaration order #3

Description

@kingazm

Description

As per #2

New examples/005.py demonstrates it even clearer, with the order of declaration being different from the one in forward()

Acceptance criteria

  • parser.parse() orders LayeredGraph columns by actual module-call order during that pass, not named_children() order.
  • Declared-but-unused layers (e.g. fc4/fc5 in SimpleMLP) no longer appear in the rendered graph.
  • Untraceable models fail with a clear error instead of silently reverting to declaration order.
  • Add coverage for reordered-declaration, unused-layer-exclusion, and repeated-call cases.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions