Update tensorflow/core/public/version.h.
(old_version, new_version)
| 181 | |
| 182 | |
| 183 | def update_version_h(old_version, new_version): |
| 184 | """Update tensorflow/core/public/version.h.""" |
| 185 | replace_string_in_line("#define TF_MAJOR_VERSION %s" % old_version.major, |
| 186 | "#define TF_MAJOR_VERSION %s" % new_version.major, |
| 187 | VERSION_H) |
| 188 | replace_string_in_line("#define TF_MINOR_VERSION %s" % old_version.minor, |
| 189 | "#define TF_MINOR_VERSION %s" % new_version.minor, |
| 190 | VERSION_H) |
| 191 | replace_string_in_line("#define TF_PATCH_VERSION %s" % old_version.patch, |
| 192 | "#define TF_PATCH_VERSION %s" % new_version.patch, |
| 193 | VERSION_H) |
| 194 | replace_string_in_line( |
| 195 | "#define TF_VERSION_SUFFIX \"%s\"" % old_version.identifier_string, |
| 196 | "#define TF_VERSION_SUFFIX \"%s\"" % new_version.identifier_string, |
| 197 | VERSION_H) |
| 198 | |
| 199 | |
| 200 | def update_setup_dot_py(old_version, new_version): |
no test coverage detected