
深度学习
Jennie_J
这个作者很懒,什么都没留下…
展开
-
python之eval
eval() 函数用来执行一个字符串表达式,并返回表达式的值。x = 7y = eval( '3 * x' )print(y)21更好用的地方体现在:model_choice = 'TransformerTime_NL' # name of the model classmodel_file = eval(model_choice) 直接执行调用模型这一步,而不是字符串赋值model = model_file(n_diagnosis_codes, batch_size, options)原创 2021-01-08 16:26:11 · 325 阅读 · 0 评论 -
windows 安装tensorflow2.0
环境:windows 10python 3.6.5tensorflow 2.0.0 CPU版本ps: 原先已经通过anaconda安装了tf-1.13.1打开 Anaconda PromptSTEP1. 卸载tf-1.13.1pip uninstall tensorflow==1.13.1STEP2. 安装 tf-2.0.0pip install tensorflow==2.0...原创 2019-11-18 13:07:11 · 434 阅读 · 0 评论 -
pytorch安装
按官网方法安装出现问题:CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.continuum.io/pkgs/main/win-64/repodata.json.bz2>Elapsed: An HTTP error occurred when trying to retrieve this URL....原创 2019-04-14 22:54:52 · 800 阅读 · 0 评论 -
python3.6.5+win10+tensorflow1.13
安装配置:os版本:win10语言版本:py3.6.5IDE: pycharmTensorFlow1.13: CPU版本安装Aconda prompt 下: pip3 install tensorflowpip3大法果然好用安装完成测试(Aconda prompt和pyCharm下)import tensorflow as tfsees = tf.Session()a =...原创 2019-05-11 11:16:38 · 2798 阅读 · 0 评论 -
windows下pytorch 之ImportError: DLL load failed: 找不到指定的模块问题解决
win10pytorch 1.0import torch报错:File “D:\Python\Python36\lib\site-packages\torch_init_.py”, line 78, in from torch._C import *ImportError: DLL load failed: 找不到指定的模块。解决办法:卸载重装(安装过程参考我之前写的安装过程htt...原创 2019-06-10 18:22:27 · 6668 阅读 · 0 评论 -
bert知识点拆解
word2vecttransformer self_attentionBert_fine_tuning 应用过程 fine_tuning过程bert发展史从WE到BERTword embedding WEbert google源码github原创 2019-07-16 15:14:54 · 432 阅读 · 0 评论