2018年8月2日

摘要: 链接:https://www.nowcoder.com/questionTerminal/27f3672f17f94a289f3de86b69f8a25b来源:牛客网 [编程题]堆棋子 热度指数:14085 时间限制:1秒 空间限制:32768K 算法知识视频讲解 小易将n个棋子摆放在一张无限大的棋 阅读全文

posted @ 2018-08-02 10:44 Apelike 阅读(515) 评论(0) 推荐(0) 编辑

2018年4月21日

摘要: 使用VMware-tools的替代品:open-vm-tools 安装步骤: 1 更新下系统源 sudo apt update 2 安装open-vm-tools sudo apt install open-vm-tools 3 如果要实现文件夹共享,需要安装 open-vm-tools-dkms 阅读全文

posted @ 2018-04-21 11:01 Apelike 阅读(680) 评论(0) 推荐(1) 编辑

2018年4月14日

摘要: (1)安装依赖: sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler sudo apt-get install --no-install-recommends libboost-all-dev sudo apt... 阅读全文

posted @ 2018-04-14 14:35 Apelike 阅读(311) 评论(0) 推荐(0) 编辑

2017年10月24日

摘要: TensorFlow有GPU版和CPU版。 GPU版需要CUDA和cuDNN支持,到链接:https://developer.nvidia.com/cuda-gpus 确认自己的显卡是否支持CUDA。本人采用pip方式安装GPU版本的TensorFlow。 安装Python: 官网下载Python: 阅读全文

posted @ 2017-10-24 10:39 Apelike 阅读(313) 评论(0) 推荐(0) 编辑

2017年9月27日

摘要: 隐藏前缀提示符:PS1('>>') 不显示打印内容:;结尾 字符串:a=’hi’ 屏幕输出:disp(sprint(‘2 decimals:%0.2f’,a)) 生成集合(矩阵):V=1:0.1:2 V=1:6 生成矩阵:ones(2,3)%全1 zeros(2,3)%全0 rand(2,3)%随机 阅读全文

posted @ 2017-09-27 11:18 Apelike 阅读(704) 评论(0) 推荐(0) 编辑

2017年8月19日

摘要: import tensorflow as tfimport numpy as np ##save to file#rember to define the same dtype and shape when restore# W = tf.Variable([[1,2,3],[3,4,5]],dty 阅读全文

posted @ 2017-08-19 14:48 Apelike 阅读(181) 评论(0) 推荐(0) 编辑

摘要: import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data#number 1 to 10 datamnist = input_data.read_data_sets('MNIST_data',on 阅读全文

posted @ 2017-08-19 14:47 Apelike 阅读(189) 评论(0) 推荐(0) 编辑

摘要: import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_data#number 1 to 10 datamnist = input_data.read_data_sets('MNIST_data',on 阅读全文

posted @ 2017-08-19 14:45 Apelike 阅读(185) 评论(0) 推荐(0) 编辑

摘要: import tensorflow as tfimport numpy as np def add_layer(inputs,in_size,out_size,n_layer,activation_function=None): # add one more layer and return the 阅读全文

posted @ 2017-08-19 14:44 Apelike 阅读(261) 评论(0) 推荐(0) 编辑

摘要: import tensorflow as tfimport numpy as npimport matplotlib.pyplot as plt def add_layer(inputs,in_size,out_size,activation_function=None): Weights = tf 阅读全文

posted @ 2017-08-19 14:43 Apelike 阅读(265) 评论(0) 推荐(0) 编辑