def variables_to_save(addlist):
"""Create a list of all trained variables and required variables of the model.
Appends to the list, the addlist passed as argument.
Args:
addlist: (list, of, variables, to, save)
Returns:
a a list of variables"""
return tf.trainable_variables() + tf.get_collection_ref(
REQUIRED_NON_TRAINABLES) + addlist
评论列表
文章目录