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

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
主站蜘蛛池模板: 射阳县| 施秉县| 丰县| 通化市| 南和县| 保康县| 岢岚县| 新巴尔虎左旗| 尚志市| 临沭县| 盱眙县| 鄱阳县| 崇明县| 莱芜市| 澄江县| 雅江县| 西峡县| 巴林右旗| 高雄市| 浪卡子县| 崇阳县| 廉江市| 政和县| 中超| 慈利县| 凉城县| 泸溪县| 平利县| 塔城市| 高碑店市| 绵竹市| 鄂州市| 涟水县| 巴林左旗| 托里县| 广南县| 阳山县| 辽源市| 循化| 封开县| 萨迦县|