TensorFlow
文章平均质量分 55
TensorFLow op总结
友人小A
四级社畜
展开
-
tf.raw_ops.Pack
tf.raw_ops.Pack原创 2022-03-23 15:23:38 · 1663 阅读 · 0 评论 -
tf.strided_slice
import tensorflow as tfimport numpy as npimport warningswarnings.filterwarnings(action="ignore")input = np.array( [[["000", "001", "002", "003"], ["010", "011", "012", "013"], ["020", "021", "022", "023"]], [["100", "101", "102.原创 2022-03-18 12:28:33 · 1603 阅读 · 0 评论 -
tf.nn.depthwise_conv2d()使用
1、函数定义def depthwise_conv2d(input,filter,strides,padding,rate=None, # 意思同conv的dilation,但是只有两个元素的list,[x,y]name=None,data_format=None)2、参数说明2.1 depthwise_conv2d的参数与conv2d基本一致,只是操作略有不同,最...原创 2020-03-05 17:23:36 · 3046 阅读 · 0 评论 -
tf.math.reduce_*
关于axis的理解tf.math.reduce_max() tf.math.reduce_min() tf.math.reduce_mean() tf.math.reduce_sum() tf.math.reduce_prod()1. tf.math.reduce_max()def reduce_max(input_tensor, axis=N...原创 2020-03-04 14:33:35 · 511 阅读 · 0 评论 -
axis理解
目录1. Axis的数量即为数据的维度2. 从内到外"扒开"张量3. 列几个对axis进行操作的tensorflow op,加深印象(argmax/gather)1. Axis的数量即为数据的维度axis(轴,维度)在数学和物理中,维度通常被解释为空间中描述一个位置所需的最少坐标个数(基底的位数)。然而在 numpy 中 axis 的个数就是数据的维度,体现在具体...原创 2020-03-03 19:10:11 · 912 阅读 · 0 评论 -
tf.nn.lrn() 局部响应归一化函数
1、首先先了解一下什么是过拟合和欠拟合?by Panda.X2、下面简单说一下LRN,全称Local Response Normalization (局部响应归一化函数),是一种防止过拟合的方法,一般在激活层之后使用。这个函数很少使用,基本上被类似Dropout这样的方法取代。详细算法说明请参考【深度学习技术】LRN 局部响应归一化 by CrazyVertigot3、ensorflow...原创 2020-03-03 15:02:24 · 2698 阅读 · 0 评论 -
tf.layers.flatten()使用
函数定义@tf_export('layers.flatten')def flatten(inputs, name=None): """Flattens an input tensor while preserving the batch axis (axis 0).保留axis0的同时平移输入张量,即把一个输入大小为n*h*w的Tensor变成n*(hw),相当于reshape特殊操作 Arguments: inputs: Tensor input. name: The原创 2020-03-03 10:50:19 · 15540 阅读 · 0 评论 -
tf.image.crop_and_resize()参数解析
def crop_and_resize( image, boxes, box_ind, crop_size, method="bilinear", extrapolation_value=0, name=None)功能:从输入图像张量中提取固定大小的切片,并指定插值算法(method)resize成指定的输出大小(crop_...原创 2020-02-27 16:07:55 · 1364 阅读 · 0 评论 -
tf.nn.conv2d()
TensorFlow: tf.nn.conv2d()tf.nn.conv2d( input, filter, strides, padding, use_cudnn_on_gpu=True, data_format='NHWC', dilations=[1, 1, 1, 1], name=None)TensorFlow_p...原创 2019-11-04 20:15:15 · 621 阅读 · 0 评论