当前位置: 首页 > news >正文

做网站排行网页传奇哪个好玩

做网站排行,网页传奇哪个好玩,苏州企业网站建设公司只选亿企邦,wordpress绑定熊掌号安装Miniconda 下载对应系统版本的Miniconda。我的系统是ubuntu#xff0c;所以选择Miniconda3 Linux 64-bit。下载后执行下载的sh脚本 sh Miniconda3-latest-Linux-x86_64.sh -b执行后#xff0c;运行conda初始化命令 ~/miniconda3/bin/conda init关闭当前命令终端#…安装Miniconda 下载对应系统版本的Miniconda。我的系统是ubuntu所以选择Miniconda3 Linux 64-bit。下载后执行下载的sh脚本 sh Miniconda3-latest-Linux-x86_64.sh -b执行后运行conda初始化命令 ~/miniconda3/bin/conda init关闭当前命令终端打开新的终端创建一个新的环境 conda create --name tensorflow python3.9 -y激活tensorflow环境 conda activate tensorflow安装tensorflow pip install tensorflow2.8.0 pip install tensorflow-probability0.16.0基本数据操作 导入tensorflow创建一个行向量x包含以0开始的前12个整数默认创建的为整数。 import tensorflow as tfx tf.range(12)# 可以通过shape属性来访问张量的形状 x.shape# 获取张量中元素总数 tf.size(x) # tf.Tensor(12, shape(), dtypeint32)# 改变张量的形状不改变元素数量和元素值 x tf.reshape(x, (3, 4))输出x tf.Tensor( [[ 0 1 2 3][ 4 5 6 7][ 8 9 10 11]], shape(3, 4), dtypeint32) # 创建全0张量形状为2,3,4 tf.zeros((2, 3, 4))tf.Tensor( [[[0. 0. 0. 0.][0. 0. 0. 0.][0. 0. 0. 0.]][[0. 0. 0. 0.][0. 0. 0. 0.][0. 0. 0. 0.]]], shape(2, 3, 4), dtypefloat32) # 创建全1张量形状为(2, 3, 4) tf.ones((2, 3, 4))tf.Tensor( [[[1. 1. 1. 1.][1. 1. 1. 1.][1. 1. 1. 1.]][[1. 1. 1. 1.][1. 1. 1. 1.][1. 1. 1. 1.]]], shape(2, 3, 4), dtypefloat32) # 创建形状为(34)的张量每个元素都从均值为0、标准差为1的标准高斯分布中随机采样 tf.random.normal(shape[3, 4])tf.Tensor( [[-0.09441569 0.38432765 0.14562869 -1.4273915 ][-1.2483802 -0.5629799 0.61917394 0.95960045][-0.23416954 0.78880084 0.5428484 0.5864796 ]], shape(3, 4), dtypefloat32) # 创建包含数值的Python列表为所需张量中的每个元素赋予确定的值。 tf.constant([[2, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]])tf.Tensor( [[2 1 4 3][1 2 3 4][4 3 2 1]], shape(3, 4), dtypeint32)运算符 # 张量的基本运算符(、-、/、**) x tf.constant([1.0, 2, 4, 8]) y tf.constant([2.0, 2, 2, 2]) x y, x - y, x * y, x / y, x ** y # **运算符是求幂运算tf.Tensor([ 3. 4. 6. 10.], shape(4,), dtypefloat32) tf.Tensor([-1. 0. 2. 6.], shape(4,), dtypefloat32) tf.Tensor([ 2. 4. 8. 16.], shape(4,), dtypefloat32) tf.Tensor([0.5 1. 2. 4. ], shape(4,), dtypefloat32) tf.Tensor([ 1. 4. 16. 64.], shape(4,), dtypefloat32) # “按元素”方式可以应用更多的计算包括像求幂这样的一元运算符。 tf.exp(x)tf.Tensor([2.7182817e00 7.3890562e00 5.4598148e01 2.9809580e03], shape(4,), dtypefloat32) # 多个张量连结在一起 X tf.reshape(tf.range(12, dtypetf.float32), (3, 4)) Y tf.constant([[2.0, 1, 4, 3], [1, 2, 3, 4], [4, 3, 2, 1]]) tf.concat([X, Y], axis0), tf.concat([X, Y], axis1)tf.Tensor( [[ 0. 1. 2. 3.][ 4. 5. 6. 7.][ 8. 9. 10. 11.][ 2. 1. 4. 3.][ 1. 2. 3. 4.][ 4. 3. 2. 1.]], shape(6, 4), dtypefloat32) tf.Tensor( [[ 0. 1. 2. 3. 2. 1. 4. 3.][ 4. 5. 6. 7. 1. 2. 3. 4.][ 8. 9. 10. 11. 4. 3. 2. 1.]], shape(3, 8), dtypefloat32) # 通过逻辑运算符构建二元张量 X Ytf.Tensor( [[False True False True][False False False False][False False False False]], shape(3, 4), dtypebool)
http://www.hkea.cn/news/14459131/

相关文章:

  • 微交易网站建设企业建设网站 意义何在
  • 杭州网站改版公司电话网站建设公司巨头
  • 网页设计与网站建设景点介绍域名注册服务器
  • 遂宁建设局网站首页百度网站建设开场话术
  • 网站开发工程师的生活形态网站上做地图手机上显示
  • 嘉兴云建站模板百度云搜索引擎入口百度网盘
  • 智能手机网站模板怎么做网站文章优化
  • 营销网站服务器wordpress 虎嗅 2017
  • 高端建网站全国中高风险地区最新名单
  • 新兴县城乡建设局网站登录智推教育seo课程
  • wordpress能做手机站么临邑网站制作
  • 阿里巴巴外贸网站登录哪些小程序可以赚钱
  • 制作网站教学1688货源网一件代发拼多多
  • 东莞市建设安监监督网站首页手机怎样使用域名访问网站
  • 线上会议软件有哪些怎样用百度做网站优化
  • 别人盗用我的网站备案号怎么办中山网站建设设计
  • 网站规划与开发技术属于什么大类做搞笑图片的网站
  • 旅游网站模板htmlwordpress如何使用一个demo
  • 咸阳网站建设价格深圳房地产信息网官方网站
  • 广东建设厅的网站查询余姚网站建设服务
  • wordpress管理员头像成都网站建设优化前十
  • 人才网站建站做公司网站要学会什么
  • 网站一般的后台四川城乡建设网站首页
  • 做网站用什么软件免费房地产网站设计方案
  • 神马网站排名临沂购买模板建站
  • 设计网站数据wordpress速度优化
  • 网站建设费汇算清缴课外辅导东莞网站建设技术支持
  • 南宁自助建站模板下载深圳在哪些网站上面做推广
  • 泉州建设培训中心网站做网站怎么开发客户
  • 上海公司注销seo工资