- TensorFlow 2.0 Quick Start Guide
- Tony Holdroyd
- 65字
- 2021-06-24 16:02:03
Ranking (dimensions) of a tensor
The rank of a tensor is the number of dimensions it has, that is, the number of indices that are required to specify any particular element of that tensor.
The rank of a tensor can be ascertained with this, for example:
tf.rank(t2)
The output will be as follows:
<tf.Tensor: id=53, shape=(), dtype=int32, numpy=3>
(the shape is () because the output here is a scalar value)
推薦閱讀
- GNU-Linux Rapid Embedded Programming
- 反饋系統:多學科視角(原書第2版)
- 機艙監測與主機遙控
- Python Algorithmic Trading Cookbook
- 智能工業報警系統
- 大數據挑戰與NoSQL數據庫技術
- Embedded Programming with Modern C++ Cookbook
- 工業機器人安裝與調試
- 內模控制及其應用
- 悟透AutoCAD 2009案例自學手冊
- INSTANT Heat Maps in R:How-to
- Visual C++項目開發案例精粹
- 貫通開源Web圖形與報表技術全集
- Web璀璨:Silverlight應用技術完全指南
- Learn Microsoft Azure