CRFNet_Tensorflow2.4.1 icon indicating copy to clipboard operation
CRFNet_Tensorflow2.4.1 copied to clipboard

TypeError: An op outside of the function building code is being passed a "Graph" tensor.

Open Tipper-sun opened this issue 2 years ago • 1 comments

my problem: TypeError: An op outside of the function building code is being passed a "Graph" tensor. It is possible to have Graph tensors leak out of the function building context by including a tf.init_scope in your function building code. For example, the following function will fail: @tf.function def has_init_scope(): my_constant = tf.constant(1.) with tf.init_scope(): added = my_constant * 2 The graph tensor has name: block1_conv1/kernel:0

Tipper-sun avatar Feb 10 '23 06:02 Tipper-sun

https://blog.csdn.net/sinat_28494049/article/details/104663053 Some strange problems you can search on google first, this mignt be version setting problem

nacayu avatar Feb 11 '23 05:02 nacayu