Change the update_version script to not add +1 to the minor version of TF for

nightly builds.

PiperOrigin-RevId: 318848771
Change-Id: Idb9cd031564a18f408fc927de5025a457fa79f3a
This commit is contained in:
A. Unique TensorFlower 2020-06-29 10:58:45 -07:00 committed by TensorFlower Gardener
parent 05d6e585d7
commit e085901e2c

View File

@ -294,10 +294,8 @@ def main():
new_version = Version.parse_from_string(args.version, NIGHTLY_VERSION)
new_version.set_identifier_string("-dev" + time.strftime("%Y%m%d"))
else:
# Dev minor version is one ahead of official.
nightly_minor_ver = int(old_version.minor) + 1
new_version = Version(old_version.major,
str(nightly_minor_ver),
str(old_version.minor),
old_version.patch,
"-dev" + time.strftime("%Y%m%d"),
NIGHTLY_VERSION)