riga / law

Build large-scale task workflows: luigi + job submission + remote targets + environment sandboxing using Docker/Singularity
http://law.readthedocs.io
BSD 3-Clause "New" or "Revised" License
98 stars 41 forks source link

Refactor TF graph formatter for v2, rename it #99

Closed riga closed 4 years ago

riga commented 4 years ago

This PR renames the TFConstantGraphFormatter to TFGraphFormatter and also changes its formatter name to tf_graph. Whether or not variables are converted to constants is an optional feature now. Also, the dump() method accepts polymorphic and concrete (autograph) functions now and extracts their graph.