You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement something like Vulture's NodVisitor to detect and purge non-reachable dead code, unused imports and functions. It would prevent generation of unused DAGs in ONNX.
The current canonicalizer translates this code snippet below
deffunc():
do_something1()
returndo_something2() # Should be purged from AST as it will never be hit.
to following.
deffunc():
returned_value=Nonereturned1=Falsedo_something1()
returned_value=Nonereturned1=Trueifnotreturned1:
do_something2() # This dead code is being processed in Elichika.returnreturned_value
If we implement a dead code removal canonicalizer, the above can be avoided.
The text was updated successfully, but these errors were encountered:
Implement something like Vulture's NodVisitor to detect and purge non-reachable dead code, unused imports and functions. It would prevent generation of unused DAGs in ONNX.
The current canonicalizer translates this code snippet below
to following.
If we implement a dead code removal canonicalizer, the above can be avoided.
The text was updated successfully, but these errors were encountered: