介绍 (Introduction)
An open-source machine learning software library, TensorFlow is used to train neural networks. Expressed in the form of stateful dataflow graphs, each node in the graph represents the operations performed by neural networks on multi-dimensional arrays. These multi-dimensional arrays are commonly known as “tensors,” hence the name TensorFlow.
TensorFlow是开放源代码的机器学习软件库,用于训练神经网络。 以状态数据流图的形式表示, 图中的每个节点表示神经网络在多维数组上执行的操作。 这些多维数组通常称为“张量”,因此名称为TensorFlow。
In this tutorial, you’ll install TensorFlow in a Python virtual environment with virtualenv
. This approach isolates the TensorFlow installation and gets things up and running quickly. Once you complete the installation, you’ll validate your installation by importing Tensorflow to ensure you have no errors.
在本教程中,您将使用virtualenv
在Python虚拟环境中安装TensorFlow。 这种方法可以隔离TensorFlow安装并快速启动和运行。 完成安装后,您将通过导入Tensorflow来验证安装,以确保没有错误。
先决条件 (Prerequisites)
Before you begin this tutorial, you’ll need the following:
在开始本教程之前,您需要满足以下条件:
One Ubuntu 20.04 server with at least 4GB of RAM set up by following the Ubuntu 20.04 initial server setup guide, including a sudo non-root user and a firewall.
按照