官术网_书友最值得收藏!

Finding the mean across all axes

Find the mean across all axes (that is, use the default axis = None) with this:

tf.reduce_mean(input_tensor=numbers)
#( 4. + 5. + 7. + 3.)/4 = 4.75

The output will be as follows:

<tf.Tensor: id=272, shape=(), dtype=float32, numpy=4.75>
主站蜘蛛池模板: 琼海市| 荃湾区| 涟源市| 洪雅县| 延津县| 太仓市| 松阳县| 天祝| 年辖:市辖区| 饶河县| 兴隆县| 玛沁县| 澎湖县| 綦江县| 进贤县| 山西省| 五常市| 礼泉县| 仪陇县| 株洲市| 成武县| 阳新县| 宝清县| 锦州市| 迭部县| 罗源县| 微山县| 无锡市| 临城县| 陆良县| 林口县| 鹿邑县| 吕梁市| 怀柔区| 东阳市| 胶州市| 花莲市| 利川市| 子洲县| 苏州市| 依兰县|