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

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>
主站蜘蛛池模板: 稷山县| 山丹县| 同德县| 肥东县| 长岭县| 漠河县| 定安县| 定兴县| 分宜县| 黄龙县| 巴塘县| 英山县| 普陀区| 积石山| 元氏县| 万荣县| 海淀区| 东丽区| 冀州市| 同心县| 唐山市| 凤冈县| 讷河市| 阳东县| 抚顺市| 韶山市| 五指山市| 朝阳县| 淮安市| 永新县| 莆田市| 湘潭县| 鹿邑县| 邵阳市| 夏津县| 南昌县| 玛多县| 鹤山市| 东山县| 格尔木市| 通渭县|