官术网_书友最值得收藏!

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
主站蜘蛛池模板: 定远县| 金昌市| 高邑县| 衡水市| 衡阳市| 乌什县| 南投县| 外汇| 南平市| 博兴县| 满洲里市| 邛崃市| 鱼台县| 新蔡县| 吉安市| 渭源县| 峨眉山市| 安乡县| 玉田县| 五台县| 罗山县| 山东| 鱼台县| 福贡县| 汾阳市| 鹤峰县| 化州市| 琼结县| 磴口县| 大连市| 榆林市| 新龙县| 邹城市| 周至县| 祁东县| 哈密市| 南丹县| 凤山县| 霍城县| 镇原县| 满洲里市|