書名: TensorFlow 2.0 Quick Start Guide作者名: Tony Holdroyd本章字數(shù): 46字更新時間: 2021-06-24 16:02:03
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>
推薦閱讀
- GNU-Linux Rapid Embedded Programming
- 玩轉(zhuǎn)智能機器人程小奔
- SCRATCH與機器人
- Verilog HDL數(shù)字系統(tǒng)設(shè)計入門與應(yīng)用實例
- Java實用組件集
- 數(shù)據(jù)中心建設(shè)與管理指南
- Visual C# 2008開發(fā)技術(shù)實例詳解
- 群體智能與數(shù)據(jù)挖掘
- 可編程控制器技術(shù)應(yīng)用(西門子S7系列)
- 四向穿梭式自動化密集倉儲系統(tǒng)的設(shè)計與控制
- 工業(yè)機器人安裝與調(diào)試
- 啊哈C!思考快你一步
- 30天學(xué)通Java Web項目案例開發(fā)
- Oracle 11g Anti-hacker's Cookbook
- Hands-On Geospatial Analysis with R and QGIS