• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






任重道远-HSY

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2019年10月28日

TensorFlow 之tf.placeholder()
摘要: tf.placeholder( dtype, shape=None, name=None ) # In[] #dtype:被填充的张量(Tensor)的元素类型。 #shape:被填充张量(Tensor)的形状(可选参数)。如果没有指定张量(Tensor)打形状,你可 #以填充该张量(Tensor)为任意形状。 #name:为该操作提供一个名字(可选参数)。 import tensorflow a 阅读全文
posted @ 2019-10-28 14:07 任重道远-HSY 阅读(206) 评论(0) 推荐(0)
 
TensorFlow 之创建交互式 TensorFlow 会话
摘要: 使用变量必须先初始化,增加一个`初始化` op 到图中. init_op = tf.initialize_all_variables() 阅读全文
posted @ 2019-10-28 13:48 任重道远-HSY 阅读(283) 评论(0) 推荐(0)
 
Python 读取文件夹的文件
摘要: 1 def get_files(filename): 2 class_train = [] 3 label_train = [] 4 for train_class in os.listdir(filename): 5 for pic in os.listdir(filename+train_class): 6 class_train.append(filename+train_class+'/' 阅读全文
posted @ 2019-10-28 10:20 任重道远-HSY 阅读(357) 评论(0) 推荐(0)