在试图导入tensorflow_hub时,我遇到了以下错误。我已经将已有的解决方案应用于Github或堆栈溢出,甚至还降低了我的tesnorflow和估值器的级别。但我还是在往下走。你能帮忙吗?
ImportError: cannot import name 'dnn_logit_fn_builder' from partially initialized module 'tensorflow_estimator.python.estimator.canned.dnn' (most likely due to a circular import) (C:\Users\kumar\anaconda3\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py)密码-
import tensorflow as tf
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
import tensorflow_hub as hub发布于 2022-07-30 04:47:17
给定的代码在Tf v2.8 and v2.9.1中工作得很好
import tensorflow as tf
from tensorflow_estimator.python.estimator.canned.dnn import dnn_logit_fn_builder
import tensorflow_hub as hubhttps://stackoverflow.com/questions/72952000
复制相似问题