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

Specifying element-wise primitive tensor operations

Element-wise primitive tensor operations are specified using, as you would expect, the overloaded operators +, -, *, and /, as here:

t2*t2

The output will be as follows:

<tf.Tensor: id=555332, shape=(2, 2, 3), dtype=float32, numpy= array([[[ 0., 1., 4.], [ 9., 16., 25.]], [[ 36., 49., 64.], [ 81., 100., 121.]]], dtype=float32)>
主站蜘蛛池模板: 澄迈县| 宜黄县| 深州市| 安新县| 河池市| 伊吾县| 阿尔山市| 迭部县| 马边| 平顺县| 扬州市| 西平县| 武功县| 安泽县| 商水县| 信丰县| 凤台县| 抚宁县| 齐齐哈尔市| 茶陵县| 娄底市| 隆昌县| 盐源县| 南郑县| 织金县| 庆元县| 西藏| 南华县| 泰和县| 保德县| 监利县| 青龙| 平顶山市| 盘锦市| 大荔县| 图们市| 开远市| 会昌县| 泾阳县| 林西县| 庆云县|