The documentation on https://www.tensorflow.org/versions does not match the latest release on https://github.com/tensorflow/tensorflow/releases. See also: https://github.com/freeCodeCamp/devdocs/pull/2440#issuecomment-2676859096
Unified · Split
| @@ -20,7 +20,7 @@ module Docs · 19 unmodified lines | ||
| 20 | 20 | HTML |
| 21 | 21 | |
| 22 | 22 | version do |
| 23 | − self.release = "2.18.0" | |
| 23 | + self.release = "2.16.1" | |
| 24 | 24 | self.base_url = "https://www.tensorflow.org/api_docs/python/tf" |
| 25 | 25 | end |
| 26 | 26 | |
| @@ -45,7 +45,8 @@ module Docs · 18 unmodified lines | ||
| 45 | 45 | end |
| 46 | 46 | |
| 47 | 47 | def get_latest_version(opts) |
| 48 | − get_latest_github_release('tensorflow', 'tensorflow', opts) | |
| 48 | + doc = fetch_doc(self.base_url, opts) | |
| 49 | + doc.title[/TensorFlow v([.\d]+)/, 1] | |
| 49 | 50 | end |
| 50 | 51 | |
| 51 | 52 | private |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | self.slug = 'tensorflow_cpp' |
| 5 | 5 | |
| 6 | 6 | version do |
| 7 | − self.release = "2.18.0" | |
| 7 | + self.release = "2.16.1" | |
| 8 | 8 | self.base_url = "https://www.tensorflow.org/api_docs/cc" |
| 9 | 9 | end |
| 10 | 10 | |