MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / update_version_h

Function update_version_h

tensorflow/tools/ci_build/update_version.py:183–197  ·  view source on GitHub ↗

Update tensorflow/core/public/version.h.

(old_version, new_version)

Source from the content-addressed store, hash-verified

181
182
183def 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
200def update_setup_dot_py(old_version, new_version):

Callers 1

mainFunction · 0.85

Calls 1

replace_string_in_lineFunction · 0.85

Tested by

no test coverage detected