我在关注“”上的一篇文章。我在我的本地机器上遇到了一个错误,尽管代码在colab中似乎可以运行精细的。下面是代码片段。units=512, num_heads=4, name="sample_encoder_layer")
During handling of the above exception,
我想在非急切模式下测试张量的类型。,同样的代码不会,我发现测试的唯一方法是丑陋的str(num_type) == "float32" sess = tf.Session()
t = sess.run(tf.random.normal(: data type not understood` 如果我试图在会话中获取张量的类型: t = tf.random.normal([1, 1]