- TensorFlow 2.0 Quick Start Guide
- Tony Holdroyd
- 60字
- 2021-06-24 16:02:04
Finding the datatype of a tensor
TensorFlow supports all of the datatypes you would expect. A full list is available at https://www.tensorflow.org/versions/r1.1/programmers_guide/dims_types and includes tf.int32 (the default integer type), tf.float32 (the default floating point type), and tf.complex64 (the complex type).
To find the datatype of a tensor, use the following dtype property:
t3.dtype
The output will be as follows:
tf.float32
推薦閱讀
- Ansible Configuration Management
- 玩轉(zhuǎn)智能機(jī)器人程小奔
- Blockchain Quick Start Guide
- Pig Design Patterns
- 人工智能與人工生命
- AWS Administration Cookbook
- JavaScript典型應(yīng)用與最佳實(shí)踐
- 突破,Objective-C開發(fā)速學(xué)手冊(cè)
- Applied Data Visualization with R and ggplot2
- 電腦日常使用與維護(hù)322問
- 啊哈C!思考快你一步
- 強(qiáng)化學(xué)習(xí)
- Mastering OpenStack(Second Edition)
- 無人駕駛感知智能
- 傳感器原理及實(shí)用技術(shù)