- TensorFlow 2.0 Quick Start Guide
- Tony Holdroyd
- 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>
推薦閱讀
- 大數(shù)據(jù)戰(zhàn)爭(zhēng):人工智能時(shí)代不能不說的事
- 高性能混合信號(hào)ARM:ADuC7xxx原理與應(yīng)用開發(fā)
- Learning Microsoft Azure Storage
- 實(shí)時(shí)流計(jì)算系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
- Dreamweaver CS3網(wǎng)頁設(shè)計(jì)50例
- Visual C# 2008開發(fā)技術(shù)實(shí)例詳解
- 機(jī)器人創(chuàng)新實(shí)訓(xùn)教程
- 基于ARM 32位高速嵌入式微控制器
- 電腦主板現(xiàn)場(chǎng)維修實(shí)錄
- 項(xiàng)目管理成功利器Project 2007全程解析
- 在實(shí)戰(zhàn)中成長(zhǎng):C++開發(fā)之路
- 大數(shù)據(jù)案例精析
- Hadoop Beginner's Guide
- 巧學(xué)活用Linux
- Flash CS3動(dòng)畫制作