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

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)>
主站蜘蛛池模板: 无极县| 石家庄市| 苍溪县| 鹤山市| 山西省| 武城县| 阿城市| 蓬溪县| 商丘市| 基隆市| 白银市| 河源市| 黔东| 北票市| 七台河市| 金湖县| 日土县| 宁波市| 鹤庆县| 沙坪坝区| 龙山县| 西丰县| 西城区| 台前县| 嘉义县| 岑巩县| 蕉岭县| 自治县| 安康市| 灵山县| 曲沃县| 达尔| 枞阳县| 永和县| 库尔勒市| 盘锦市| 武冈市| 宁安市| 曲靖市| 黎川县| 迁安市|