3 Star 0 Fork 0

Gitee 极速下载/Fold-Tensor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/tensorflow/fold
克隆/下载
setup.md 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
Moshe Looks 提交于 8年前 . Update setup.md

Download and Setup

Fold runs under Linux; we have not tested it on other platforms. Python 2.7 and 3.3+ are both supported. We recommend installing using Virtualenv and pip. See here for instructions on installing from sources, if that's how you roll. If you run into trouble, the TensorFlow main site has a list of common problems with some solutions that might be helpful.

Please note that Fold requires TensorFlow 1.0; it is not compatible with earlier versions due to breaking API changes.

First install Python, pip, and Virtualenv:

sudo apt-get install python-pip python-dev python-virtualenv

Create a Virtualenv environment in the directory foo:

virtualenv foo             # for Python 2.7
virtualenv -p python3 foo  # for Python 3.3+

Activate the environment:

source ./foo/bin/activate      # if using bash
source ./foo/bin/activate.csh  # if using csh

Install the pip package for TensorFlow. For Python 2.7 CPU-only, this will be:

pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.0.0rc0-cp27-none-linux_x86_64.whl

For Python 3.3+ and/or GPU, see here for the full list of available TF binaries.

Check that TensorFlow can load:

python -c 'import tensorflow'

Install the pip package for Fold. For Python 2.7, this will be:

pip install https://storage.googleapis.com/tensorflow_fold/tensorflow_fold-0.0.1-cp27-none-linux_x86_64.whl

For Python 3.3:

pip install https://storage.googleapis.com/tensorflow_fold/tensorflow_fold-0.0.1-py3-none-linux_x86_64.whl

Check that Fold can load:

python -c 'import tensorflow_fold'

Success!

Next steps

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/mirrors/Fold-Tensor.git
git@gitee.com:mirrors/Fold-Tensor.git
mirrors
Fold-Tensor
Fold-Tensor
master

搜索帮助