Skip to content

Add traversal algorithm to buildSync() #448

@zolkis

Description

@zolkis

Originally posted by @huningxin in #446 (comment)
Looping |operand| in |outputs| only won't be able to validate and process the all operands and operators for the graph. Consider adding a graph traversal algorithm starting from |outputs|.

There is an implementation example: https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/modules/ml/webnn/ml_graph.cc;drc=ec360d3f928af69a303d413e806138b7624997e6;l=168?q=ml_graph.cc&ss=chromium

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions