tensroflow
文章平均质量分 51
SherryGo
这个作者很懒,什么都没留下…
展开
-
Tensorflow保存和恢复模型
原文链接save_and_restore_model安装和导入!pip install h5py pyyaml 获取示例数据from __future__ import absolute_import, division, print_functionimport osimport tensorflow as tffrom tensorflow import kera...原创 2018-07-17 10:40:33 · 976 阅读 · 0 评论 -
docker常见命令
1、安装dockeryum install docker2、检查docker版本号docker version3、启动dockerservice docker start4、检查可用镜像docker search tensorflow5、下载镜像docker pull docker.io/jupyter/tensorflow-notebook6、创建一个新的...原创 2018-05-16 09:03:31 · 362 阅读 · 0 评论 -
python 杀死自身进程
有时候我们需要中断程序的执行,比如执行如下代码失败时。import tensorflow as tftf.enable_eager_execution()这时我们可以杀掉进程,重新执行上述代码 import osimport signalos.kill(os.getpid(), signal.SIGKILL) ...原创 2018-07-18 16:21:00 · 8450 阅读 · 0 评论 -
custom_layers
Implementing custom layersThe best way to implement your own layer is extending the tf.keras.Layer class and implementing:__init__ , where you can do all input-independent initialization build, w...原创 2018-07-20 10:16:05 · 1572 阅读 · 0 评论