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

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
主站蜘蛛池模板: 随州市| 新昌县| 方正县| 阳朔县| 中卫市| 吉木萨尔县| 铜鼓县| 嵊泗县| 永兴县| 灵川县| 邓州市| 澄江县| 恩平市| 南华县| 永寿县| 嘉祥县| 七台河市| 马山县| 肇州县| 中阳县| 海宁市| 抚宁县| 六枝特区| 海城市| 壶关县| 漳平市| 磐石市| 白银市| 三原县| 湄潭县| 邯郸市| 米脂县| 东阿县| 响水县| 顺昌县| 青州市| 高密市| 桃源县| 余庆县| 长宁县| 墨玉县|