Tensorflow基础 01-Tensorflow概述

Tensorflow简介

什么是Tensorflow

 Tensorflow的特点

 Tensorflow发展历史

Tensorflow安装

pip3 install tensorflow==1.2.0

 tensorflow版本的helloworld

# tensorflow版本的helloworld

import tensorflow as tf

hello = tf.constant("Hello world!")  # 定义一个常量(张量)
sess = tf.Session()  # 创建一个session,用来执行操作
print(sess.run(hello))  # 调用session的run方法,执行hello操作,并打印结果
sess.close()  # 关闭session

 张量相加

#常量加法运算示例
import tensorflow as tf
import os

os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'

a = tf.constant(5.0)
b = tf.constant(1.0)
c = tf.add(a,b)

with tf.Session() as sess:
    print(sess.run(c))

Tensorflow体系结构

体系结构概述

 单机模式和分布式模式

 后端逻辑层次

 基本概念

 数据流

 操作

 图和会话

 变量和占位符

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值