- 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)
推薦閱讀
- Natural Language Processing Fundamentals
- 基于LPC3250的嵌入式Linux系統(tǒng)開發(fā)
- 空間機(jī)器人遙操作系統(tǒng)及控制
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 電腦上網(wǎng)直通車
- 樂高創(chuàng)意機(jī)器人教程(中級(jí) 下冊(cè) 10~16歲) (青少年iCAN+創(chuàng)新創(chuàng)意實(shí)踐指導(dǎo)叢書)
- 基于多目標(biāo)決策的數(shù)據(jù)挖掘方法評(píng)估與應(yīng)用
- Blender 3D Printing by Example
- PostgreSQL 10 Administration Cookbook
- 單片機(jī)C語言應(yīng)用100例
- R Data Analysis Projects
- 機(jī)器人人工智能
- C++程序設(shè)計(jì)基礎(chǔ)(上)
- ASP.NET 2.0 Web開發(fā)入門指南
- 電腦上網(wǎng)入門