Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FRONTEND][TENSORFLOW] Helper function to add shapes into the graph. Use temp folder for models and clean it. #1697

Merged
merged 1 commit into from Sep 14, 2018

Conversation

srkreddy1238
Copy link
Contributor

Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from others in the community.

…Use tmp folder for model files and clean it.
@srkreddy1238
Copy link
Contributor Author

@masahi , @yzhliu & @siju-samuel welcome for a review.

@masahi
Copy link
Member

masahi commented Sep 13, 2018

Sorry, I am not familiar with tensorflow.

@srkreddy1238
Copy link
Contributor Author

@nishi-t welcome to review.

@@ -76,7 +75,8 @@
graph = tf.import_graph_def(graph_def, name='')
# Call the utility to import the graph definition into default graph.
graph_def = nnvm.testing.tf.ProcessGraphDefParam(graph_def)

# Add shapes to the graph.
graph_def = nnvm.testing.tf.AddShapesToGraphDef('softmax')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a question. It seems that AddShapesToGraphDef override the graph_def returned from ProcessGraphDefParam. Is it no problem? AddShapesToGraphDef is only used for type checking?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats not a problem as AddShapesToGraphDef take the default graph which is in tf session and is same as graph_def earlier. This step just re freezes the same graph with shapes added .

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I understand it. Thanks.

Copy link
Contributor

@nishi-t nishi-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@tqchen tqchen merged commit dd9589e into apache:master Sep 14, 2018
@tqchen
Copy link
Member

tqchen commented Sep 14, 2018

Thanks @srkreddy1238 @nishi-t , this is now merged

FrozenGene pushed a commit to FrozenGene/tvm that referenced this pull request Dec 27, 2018
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.

None yet

5 participants