temp_export_dir = os.path.join(
tf.compat.as_bytes(dirname),
tf.compat.as_bytes("temp-{}".format(basename)))
return temp_export_dir
// Note: This is written from scratch to mimic the pattern in:
// `tf_v1.estimator.LatestExporter._garbage_collect_exports()`.
After Change
A sister directory prefixed with "temp-", e.g. /foo/bar/temp-<timestamp>.
dirname, basename = os.path.split(tf.compat.as_bytes(timestamped_export_dir))
return os.path.join(dirname, b"temp-" + basename)
// Note: This is written from scratch to mimic the pattern in:
// `tf_v1.estimator.LatestExporter._garbage_collect_exports()`.