- 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>
推薦閱讀
- 7天精通Dreamweaver CS5網頁設計與制作
- 大數據改變世界
- 數控銑削(加工中心)編程與加工
- 精通Excel VBA
- VMware Performance and Capacity Management(Second Edition)
- Pig Design Patterns
- 機器學習流水線實戰
- 運動控制系統應用與實踐
- Photoshop行業應用基礎
- SMS 2003部署與操作深入指南
- Linux Shell編程從初學到精通
- Excel 2007終極技巧金典
- Unreal Development Kit Game Design Cookbook
- x86/x64體系探索及編程
- Hands-On Generative Adversarial Networks with Keras