提交 5aff5303 编写于 作者: S Sukriti Ramesh 提交者: TensorFlower Gardener

Comment update for main-op in the SavedModel builder APIs.

PiperOrigin-RevId: 164791375
上级 b5c59851
......@@ -252,7 +252,9 @@ class SavedModelBuilder(object):
restore op upon a load.
clear_devices: Set to true if the device info on the default graph should
be cleared.
main_op: Op or group of ops to execute when the graph is loaded.
main_op: Op or group of ops to execute when the graph is loaded. Note
that when the main_op is specified it is run after the restore op at
load-time.
Raises:
AssertionError: If the variables for the SavedModel have not been saved
......@@ -324,7 +326,9 @@ class SavedModelBuilder(object):
restore op upon a load.
clear_devices: Set to true if the device info on the default graph should
be cleared.
main_op: Op or group of ops to execute when the graph is loaded.
main_op: Op or group of ops to execute when the graph is loaded. Note
that when the main_op is specified it is run after the restore op at
load-time.
"""
if self._has_saved_variables:
raise AssertionError("Graph state including variables and assets has "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册