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

Specifying an element of a tensor

Specifying an element of a tensor is performed, as you would expect, by specifying the required indices.

Take this, for example:

t3 = t2[1, 0, 2] # slice 1, row 0, column 2
t3

The output will be as follows:

<tf.Tensor: id=75, shape=(), dtype=float32, numpy=8.0>
主站蜘蛛池模板: 湖北省| 商南县| 镇原县| 博罗县| 安陆市| 康定县| 建德市| 卓尼县| 响水县| 礼泉县| 广德县| 会宁县| 武乡县| 巴马| 谢通门县| 积石山| 石林| 泾源县| 彰化市| 岑巩县| 通化县| 介休市| 三明市| 醴陵市| 台山市| 岳西县| 湟源县| 乳山市| 丰宁| 军事| 河北省| 嘉荫县| 遵义县| 石门县| 永修县| 鸡东县| 商南县| 深圳市| 通山县| 昌图县| 曲靖市|