小编Yan*_*zeu的帖子

如何在VSCode中使用plantUML预览?

我正在尝试在 VSCode 上使用 plantuml 附加组件:有几个,但都不起作用。在此示例中,我使用 plantUML 插件。

我正在使用的扩展程序

我的 VSCode

正如您在第二张图片上看到的,预览是空白的。

你能帮助我吗 ?

plantuml visual-studio-code

32
推荐指数
3
解决办法
4万
查看次数

尝试导入 tensorflow_hub 时出现此错误:无法从 'tensorflow.python.distribute' 导入名称 'parameter_server_strategy_v2'

我运行了这个代码:

import tensorflow_hub as hub
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-5c017171c13e> in <module>
----> 1 import tensorflow_hub as hub

~\anaconda3\envs\Python 3-7\lib\site-packages\tensorflow_hub\__init__.py in <module>
     86 
     87 
---> 88 from tensorflow_hub.estimator import LatestModuleExporter
     89 from tensorflow_hub.estimator import register_module_for_export
     90 from tensorflow_hub.feature_column import image_embedding_column

~\anaconda3\envs\Python 3-7\lib\site-packages\tensorflow_hub\estimator.py in <module>
     60 
     61 
---> 62 class LatestModuleExporter(tf.compat.v1.estimator.Exporter):
     63   """Regularly exports registered modules into timestamped directories.
     64 

~\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\util\lazy_loader.py in __getattr__(self, item)
     60 
     61   def __getattr__(self, item):
---> 62     module = self._load()
     63     return getattr(module, …
Run Code Online (Sandbox Code Playgroud)

numpy tensorflow tensorflow-hub

3
推荐指数
2
解决办法
3064
查看次数