![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow2.0
文章平均质量分 58
秃头小姐
欢迎指教
展开
-
2少包安装
PyCharm中少包? 选择Terminal 比如输入 下面代码安装 matplotlib 【临时使用清华镜像】 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib原创 2021-02-04 11:27:34 · 123 阅读 · 0 评论 -
2创建常量和变量
引入:代码解释 import tensorflow as tf a=tf.constant([1,5],dtype=tf.int64) print(a) print(a.dtype) print(a.shape) #运行结果: <tf.Tensor([1,5], shape=(2 , ) , dtype=int64) <dtype: 'int64'> (2,) 直接输出变量会将变量的所有信息输出出来,ex: tf.Tensor([1,5], shape=(2 , ) , dtype=in原创 2021-02-04 11:25:39 · 274 阅读 · 0 评论 -
1.安装
一、tensorflow安装 1.1、安装环境 python3.7 Anaconda3-5.3.1-Windows-x86_64 1.2、安装步骤 选择anaconda的prompt窗口 有显卡,输入conda create -n TF2.1 python=3.7【用python3.7版本创建一个名叫TF2.1的环境】【中途选择’y’:表示同意安装相关软件包】 输入conda activate TF2.1,进入TF2.1环境 输入conda install cudatoolkit=10.原创 2021-02-04 11:23:36 · 69 阅读 · 1 评论