Skip to content

Commit

Permalink
Revert the change to gen_tftrt_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroey committed Dec 11, 2019
1 parent d50a54a commit 8a03f97
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -45,6 +45,7 @@
from tensorflow.python.saved_model import utils
from tensorflow.python.training.tracking import tracking


def GetGraph(input1, input2, var):
"""Define graph."""
add = input1 + var
Expand Down Expand Up @@ -89,7 +90,6 @@ def run(self, input1, input2):
def GenerateModelV1(tf_saved_model_dir, tftrt_saved_model_dir):
"""Generate and convert a model using TFv1 API."""


def SimpleModel():
"""Define model with a TF graph."""

Expand Down Expand Up @@ -134,4 +134,4 @@ def GraphFn():
if __name__ == "__main__":
GenerateModelV2(
tf_saved_model_dir="tf_saved_model",
tftrt_saved_model_dir="tftrt_saved_model")
tftrt_saved_model_dir="tftrt_saved_model")

0 comments on commit 8a03f97

Please sign in to comment.