import tensorflow as tf
h=tf.int32(6)
报错:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'DType' object is not callable
解决办法
h = tf.constant(6, dtype=tf.int32)
import tensorflow as tf
h=tf.int32(6)
报错:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'DType' object is not callable
解决办法
h = tf.constant(6, dtype=tf.int32)