![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
6丁一的猫
为时未晚
展开
-
TF中的tf.Variable 和 tf.placehold 的区别
1 tf.placehold 占位符。 主要为真实输入数据和输出标签的输入, 用于在 feed_dict中的变量,不需要指定初始值,具体值在feed_dict中的变量给出。2 tf.Variable 主要用于定义weights bias等可训练会改变的变量,必须指定初始值。原创 2017-10-23 09:40:05 · 381 阅读 · 0 评论 -
tf.argmax()用法
tf.argmax(vector, 1):返回的是vector中的最大值的索引号,如果vector是一个向量,那就返回一个值,如果是一个矩阵,那就返回一个向量,这个向量的每一个维度都是相对应矩阵行的最大值元素的索引号。import tensorflow as tf import numpy as np A = [[1,3,4,5,6]] B = [[1,3,4], [2,4,1]] wi原创 2017-10-23 16:01:48 · 977 阅读 · 0 评论 -
tf.nn.conv2d
conv2d( input, filter, strides, padding, use_cudnn_on_gpu=None, data_format=None, name=None )padding: A string from: "SAME", "VALID". The type of padding algorithm to use.注意原创 2017-11-01 11:06:50 · 229 阅读 · 0 评论 -
finetune模型例子
from keras.applications.inception_v3 import InceptionV3 from keras.preprocessing import image from keras.models import Model from keras.layers import Dense, GlobalAveragePooling2D from keras import ba...原创 2018-03-19 09:34:48 · 917 阅读 · 0 评论