Skip to content

Conversation

duc0
Copy link
Contributor

@duc0 duc0 commented Mar 19, 2019

Summary:
Add a util method to cleanup external inputs and outputs from a NetDef

The following conditions will be met after the modification

  • No duplicate external inputs
  • No duplicate external outputs
  • Going through list of ops in order, all op inputs must be outputs
    from other ops, or registered as external inputs.
  • All external outputs must be outputs of some operators.

Differential Revision: D14528589

@duc0 duc0 force-pushed the export-D14528589 branch from d3d80d4 to a5b3f92 Compare March 21, 2019 17:31
@duc0 duc0 force-pushed the export-D14528589 branch from a5b3f92 to c61cd1c Compare March 21, 2019 19:20
…ytorch#18194)

Summary:
Pull Request resolved: pytorch#18194

Add a util method to cleanup external inputs and outputs from a NetDef

The following conditions will be met after the modification
- No duplicate external inputs
- No duplicate external outputs
- Going through list of ops in order, all op inputs must be outputs
from other ops, or registered as external inputs.
- All external outputs must be outputs of some operators.

Reviewed By: ZolotukhinM

Differential Revision: D14528589

fbshipit-source-id: 20820ff2afacacef74bfdd60b48436d8d175d1e6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants