Skip to content

Commit e3e4313

Browse files
Adds instructions for patching TensorFlow.
Updates README.md and includes instructions for patching TensorFlow, for example, for applying security vulnerabilities to earlier versions of TensorFlow. PiperOrigin-RevId: 501408199
1 parent 9cd1448 commit e3e4313

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,19 @@ for general questions and discussion, and please direct specific questions to
104104
The TensorFlow project strives to abide by generally accepted best practices in
105105
open-source software development.
106106

107+
## Patching guidelines
108+
109+
Follow these steps to patch a specific version of TensorFlow, for example, to
110+
apply fixes to bugs or security vulnerabilities:
111+
112+
* Clone the TensorFlow repo and switch to the corresponding branch for your
113+
desired TensorFlow version, for example, branch `r2.8` for version 2.8.
114+
* Apply (that is, cherry pick) the desired changes and resolve any code
115+
conflicts.
116+
* Run TensorFlow tests and ensure they pass.
117+
* [Build](https://www.tensorflow.org/install/source) the TensorFlow pip
118+
package from source.
119+
107120
## Continuous build status
108121

109122
You can find more community-supported platforms and configurations in the

0 commit comments

Comments
 (0)