08 2020 档案

摘要:####示例: input_patch = tf.extract_image_patches(input, ksizes=[1, patch_sz, patch_sz, 1], strides=[1, 1, 1, 1], rates=[1, rates, rates, 1], padding="SA 阅读全文
posted @ 2020-08-31 14:46 wioponsen 阅读(1227) 评论(0) 推荐(0) 编辑
摘要:tf.random_normal: 产生正态分布的随机数。 参数(shape,stddev,mean,dtype) tf.random_uniform: 产生[0,1)之间的随机数,也可制定产生[minval,maxval)的随机数 例子: x = tf.constant(1.0,dtype=tf. 阅读全文
posted @ 2020-08-31 14:17 wioponsen 阅读(1032) 评论(0) 推荐(0) 编辑
摘要:问题描述: TensorFlow中dataset方法中 dataset = dataset.shuffle(buffer_size=20).repeat().batch(batch_size) 其中shuffle的buffer_size是有什么用? 答: 是做随机采样使用的缓冲大小,buffer_s 阅读全文
posted @ 2020-08-31 10:28 wioponsen 阅读(1490) 评论(0) 推荐(0) 编辑
摘要:ckpt,pb,tflite转换 一、ckpt,pb,tflite文件及其特点 ckpt模型文件 ckpt是tensorflow的默认的模型保存读取文件,包含四个部分: checkpoint model.ckpt.meta model.ckpt.index model.ckpt.data* 是结构权 阅读全文
posted @ 2020-08-18 15:59 wioponsen 阅读(5581) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示