Closed khurram-ghani closed 1 year ago
Always build feature-functions using a dummy shape. This is important for tf.saved_model.save to work, in cases where the user hasn't called the trajectory yet. By calling build in __init__ we ensure all the variables always exist.
tf.saved_model.save
build
__init__
I presume the test for this will be in @uri-granta 's PR so no need to introduce a test here?
Yes, that is correct.
Always build feature-functions using a dummy shape. This is important for
tf.saved_model.save
to work, in cases where the user hasn't called the trajectory yet. By callingbuild
in__init__
we ensure all the variables always exist.