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

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)>
主站蜘蛛池模板: 长武县| 宾川县| 吉安市| 滦平县| 陇南市| 古交市| 新田县| 全州县| 来安县| 永昌县| 西青区| 峨眉山市| 菏泽市| 水城县| 双峰县| 乐都县| 东平县| 额济纳旗| 上虞市| 图们市| 阿拉善左旗| 无锡市| 玛纳斯县| 缙云县| 剑川县| 林西县| 南靖县| 大埔区| 西林县| 玉田县| 涞源县| 宜兰县| 阿荣旗| 双峰县| 营山县| 景泰县| 藁城市| 兰州市| 景东| 黄平县| 乌拉特中旗|