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

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
主站蜘蛛池模板: 宿州市| 鱼台县| 南木林县| 买车| 兴安盟| 蓝田县| 内黄县| 新闻| 张家港市| 乐山市| 嘉义县| 宝山区| 荣昌县| 河西区| 新郑市| 永顺县| 小金县| 资中县| 泗水县| 稷山县| 洪泽县| 泰州市| 玉龙| 永清县| 家居| 曲靖市| 古浪县| 石林| 海南省| 常熟市| 平山县| 资源县| 肥东县| 印江| 齐齐哈尔市| 伊金霍洛旗| 礼泉县| 红安县| 双辽市| 绥德县| 巴林右旗|