kevinthesun commented on a change in pull request #4952: [Frontend]
[Tensorflow] ReadVariableOp operator support
URL: https://github.com/apache/incubator-tvm/pull/4952#discussion_r385359582
##########
File path: python/tvm/relay/frontend/tensorflow.py
##########
@@ -2187,6 +2187,14 @@ def from_tensorflow(self, graph, layout="NHWC",
shape=None, outputs=None):
missing_operators = self._parse_import_prerequisites(graph)
if missing_operators:
+ # TODO: ReadVariableOp gets removed when graph is frozen.
+ # Add list of other operators as well which get removed
+ # and are not needed for inference.
+ # Other approach is instead of raising error, we can freeze the
graph.
+ if 'ReadVariableOp' in missing_operators:
Review comment:
Is there any other op falling into this case? If so, I suggest we create a
list containing all these ops.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services