tf.reduce_mean的用法
来源:互联网 发布:mac怎么修改磁盘名称 编辑:程序博客网 时间:2024/05/16 06:44
import tensorflow as tf;import numpy as np;A = np.array([[1,2], [3,4]])with tf.Session() as sess:print sess.run(tf.reduce_mean(A))print sess.run(tf.reduce_mean(A, axis=0))print sess.run(tf.reduce_mean(A, axis=1))输出:2 #整体的平均值[2 3] #按列求得平均[1 3] #按照行求得平均如果没有axis求得就是整体的平均,
阅读全文
1 0
- tf.reduce_mean的用法
- tf.reduce_mean
- tensorflow的tf.reduce_mean()函数的使用方法
- TensorFlow. tf.reduce_mean
- tensorflow tf.reduce_mean
- tf.reduce_mean与tf.reduce_min
- tensorflow_api_5:tf.reduce_mean()这类函数
- tensorflow:tf.reduce_mean()和tf.reduce_sum()
- TensorFlow学习--tf.reduce_mean()
- tf.concat的用法
- tf.clip_by_value的用法
- tf.convert_to_tensor的用法
- tf.select的用法
- tf.assign的用法
- tf.truncated_normal的用法
- tf.concat的用法
- tf.cond()的用法
- tf.concat的用法
- Ubuntu14,jdk1.8,hadoop2.7.* 安装
- 知识点
- 使用js内置对象document对html的标签做一些动态的操作
- 神经网络(1)
- 多态
- tf.reduce_mean的用法
- C语言函数参数的传递详解
- 中文字符集国家标准
- char[] 转换为 string
- [基础类型巩固2]array
- MySQL 学习<三> 数据类型简介
- xilinx sdk 2016.4 program flash error
- CPqD的安装和使用
- Java邮件发送:基于JavaMail