tensorflow - 如何找到旧 TensorFlow 版本的要求?
问题描述
因为现在,我正在使用Wayback Machine,这很荒谬。一定有更好的方法。
对于给定的 TensorFlow 版本,例如 2.1,我如何/在哪里可以找到相关的软件要求?
更具体地说,需要哪些 NVIDIA GPU 驱动程序、Cuda Toolkit 和 cuDNN。
解决方案
一种方法是,您可以设置虚拟环境并安装 tensorflow 2.1
$ pip install tensorflow==2.1.3
然后只需在命令行中调用库就会显示它的依赖关系
$ tensorflow
检查此答案以获取详细信息。
如果您不想安装库,
- 您可以访问TensorFlow 版本。
- 选择特定的包
- 在 REQUIRED_PACKAGES 下的 setup.py 中旧版本的源代码(必须下载其 zip)中,您可以找到该列表。
此处的示例(检查下面显示的路径以查找文件)- https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/pip_package/setup.py
REQUIRED_PACKAGES = [
'absl-py ~= 0.10',
'astunparse ~= 1.6.3',
'flatbuffers ~= 1.12.0',
'google_pasta ~= 0.2',
'h5py ~= 3.1.0',
'keras_preprocessing ~= 1.1.2',
'numpy ~= 1.19.2',
'opt_einsum ~= 3.3.0',
'protobuf >= 3.9.2',
'six ~= 1.15.0',
'termcolor ~= 1.1.0',
'typing_extensions ~= 3.7.4',
'wheel ~= 0.35',
'wrapt ~= 1.12.1',
# These packages need to be pinned exactly as newer versions are
# incompatible with the rest of the ecosystem
'gast == 0.4.0',
# TensorFlow ecosystem packages that TF exposes API for
# These need to be in sync with the existing TF version
# They are updated during the release process
# When updating these, please also update the nightly versions below
'tensorboard ~= 2.4',
'tensorflow_estimator ~= 2.3.0',
]
推荐阅读
- ios - CollectionView 自动调整大小标签不起作用
- machine-learning - 通过自定义 LSTM 时的形状错误
- react-native - eslint 将文本推送到编辑器的开头
- python - 用python中的数值模型拟合曲线
- html - 如何在此文本上设置填充或边距
- javascript - API 与 Postman 一起工作,但在 Javascript Fetch 中失败
- html - 如何使网页游戏画布适合窗口
- asp.net - LINQ to SQL - VISUAL STUDIO 社区 2017
- java - 如何以及在何处为鼠标悬停的 Fontawosomefx 图标设置 css 样式
- kubernetes - Kubernetes 解析后端 IP