我正在尝试在tensorflow https://www.tensorflow.org/text/tutorials/classify_text_with_bert中编写伯特教程。
我的pip列表包含tensorboard 2.8.0、tensorboard-data-server 0.6.0、tensorboard-plugin-wit 1.8.0、tensorflow 2.8.0、tensorflow-addons 0.13.0、tensorflow-datasets 4.4.0、tensorflow-estimator 2.4.0、tensorflow-hub 0.12.0、tensorflow-io-gcs-filesystem 0.24.0、tensorflow-metadata 1.2.0、tensorflow-model-optimization 0.6.0。
导入
bert_preprocess_model = hub.KerasLayer(tfhub_handle_preprocess) is name 'hub' is not defined时获得的tensorflow_hub错误导入名称‘正常化’,但我认为这与第一个错误有关。Python版本是Python 3.8.5 (default, Sep 3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
有人能帮我解决这个问题吗?
发布于 2022-06-06 04:00:57
通过创建新环境和完成tensorflow软件包的新安装来解决问题
https://stackoverflow.com/questions/72512674
复制相似问题