# coding: utf-8 import tensorflow as tf import os os.environ["CUDA_VISIBLE_DEVICES"] = "-1" print(tf.__version__) print(tf.test.is_gpu_available()) fr ...
分类:
其他好文 时间:
2020-07-10 10:00:02
阅读次数:
62
# coding: utf-8 get_ipython().run_line_magic('matplotlib', 'notebook') import matplotlib.pyplot as plt import tensorflow as tf import tensorflow.contr ...
分类:
其他好文 时间:
2020-07-10 09:31:57
阅读次数:
78
启动远程服务 pip install --ignore-installed --upgrade tensorflow==1.10 pip install bert-serving-server pip install bert-serving-client #下载模型 mkdir model cd ...
分类:
其他好文 时间:
2020-07-09 15:21:36
阅读次数:
138
问题背景:python通过grpc调用tfserving报错, 提示:AttributeError: module 'tensorflow_serving.apis.prediction_service_pb2' has no attribute 'beta_create_PredictionSer ...
分类:
编程语言 时间:
2020-07-09 12:12:29
阅读次数:
130
官网:https://tensorflow.google.cn/tfx/guide/serving 步骤1:保存pb模型 # 为模型每一个参数添加name # ner demo: https://github.com/buppt/ChineseNER self.input_x = tf.placeh ...
分类:
Web程序 时间:
2020-07-08 15:34:47
阅读次数:
153
1,bazel编译时间过长,且最终显示不完全成功 问题原因,g++版本过新 把自己7.5版本的改为4.8.5版本。 参考链接:https://blog.csdn.net/sinat_35496345/article/details/80478622 ...
分类:
其他好文 时间:
2020-07-08 01:42:13
阅读次数:
86
有时候我们通常会有很多python解释器,例如python2、python3、python(Anaconda)。 参考链接:https://www.cnblogs.com/michaelcjl/p/12591595.html 事先安装了anaconda3版本,此时想要安装pip3,需要: https ...
分类:
编程语言 时间:
2020-07-07 15:15:14
阅读次数:
132
// conda配置安装pytorch 1、新建环境,避免与基础环境出现冲突 conda create -n pytorch_gpu python=3.7 2、切换到pytorch环境 conda activate pytorch_gpu 3、安装基本框架 conda install pandasc ...
分类:
其他好文 时间:
2020-07-07 09:46:35
阅读次数:
117
将本地文件拷贝到容器内 [root@k8s-master1 ~]# ll total 16 -rwxr-xr-x. 1 root root 322 Jul 6 09:48 1.sh -rw . 1 root root 1261 Nov 14 2019 anaconda-ks.cfg drwxr-xr ...
分类:
其他好文 时间:
2020-07-06 14:39:31
阅读次数:
167
NI-DL 应用框架:图像分类,目标检测,分割提取。 底层:TensorFlow,Keras,Cuda,C/C++ 上层:C#.NET Winform 【图像分类】 识别一张图片是否为某个类型的物体/形态/场景。 对不同纹理的图案(肉眼都不易快速辨识)进行标记分类,进行训练,对新图像就可快速的预测出 ...
分类:
其他好文 时间:
2020-07-06 01:35:27
阅读次数:
86