2021年7月15日
摘要:
cpu:shift + p mem:shift + m
阅读全文
posted @ 2021-07-15 20:47
细雨微光
阅读(136)
推荐(0)
2021年6月10日
摘要:
说明:+n 大于 n, -n 小于 n, n 相等于 n. find / -amin -30 -ls # 查找在系统中最后30分钟访问的文件find / -atime -2 -ls # 查找在系统中最后48小时访问的文件find / -mmin -10 -ls # 查找在系统中最后10分钟里修改过的
阅读全文
posted @ 2021-06-10 19:01
细雨微光
阅读(294)
推荐(0)
2021年3月2日
摘要:
计算文件的创建了多久,距离当前的时间: ans=0s if [ -f ${File} ]; then #如果文件存在 a=`stat -c %Y $File` b=`date +%s` c=$((b-a)) swap_seconds $c #转换为时分秒 fi echo $ans 转换为时分秒:如果
阅读全文
posted @ 2021-03-02 11:18
细雨微光
阅读(1393)
推荐(0)
2020年7月20日
摘要:
数组定义法1: arr=(1 2 3 4 5) # 注意是用空格分开,不是逗号!! 数组定义法2: array array[0]="a" array[1]="b" array[2]="c" 获取数组的length(数组中有几个元素): ${#array[@]} 遍历(For循环法): for var
阅读全文
posted @ 2020-07-20 15:54
细雨微光
阅读(238)
推荐(0)
2019年11月6日
摘要:
多卡训练模式: 进行深度学习模型训练的时候,一般使用GPU来进行加速,当训练样本只有百万级别的时候,单卡GPU通常就能满足我们的需求,但是当训练样本量达到上千万,上亿级别之后,单卡训练耗时很长,这个时候通常需要采用多机多卡加速。深度学习多卡训练常见有两种方式,一种是数据并行化(data parall
阅读全文
posted @ 2019-11-06 21:38
细雨微光
阅读(7822)
推荐(0)
2019年10月29日
摘要:
如果遇到:Solving environment: failed with initial frozen solve. Retrying with flexible solve. 试试方法二,先anaconda 搜索包名,查看安装方式,然后 conda 安装;有时候会存在 anaconda命令不存在
阅读全文
posted @ 2019-10-29 11:02
细雨微光
阅读(25147)
推荐(0)
2019年8月9日
摘要:
二叉树遍历: #include <iostream> #include <vector> #include <string> #include <sstream> #include<stack> #include<queue> using namespace std; struct BiTreeNo
阅读全文
posted @ 2019-08-09 19:05
细雨微光
阅读(781)
推荐(0)
2019年7月22日
摘要:
文件表达式if [ -f file ] 如果文件存在if [ -d … ] 如果目录存在if [ -s file ] 如果文件存在且非空if [ -r file ] 如果文件存在且可读if [ -w file ] 如果文件存在且可写if [ -x file ] 如果文件存在且可执行 整数变量表达式
阅读全文
posted @ 2019-07-22 17:22
细雨微光
阅读(561)
推荐(0)
2019年7月12日
摘要:
函数: tf.compat.v1.pad tf.pad 函数表达式如下: 函数用途:对各个维度进行填充,padding 输入: tensor :是要填充的张量; shape 维度为 : (N1,N2,N3,...); padings:填充方式,也是一个张量,shape : (n,2), n :表示需
阅读全文
posted @ 2019-07-12 17:20
细雨微光
阅读(3754)
推荐(0)
2019年5月23日
摘要:
如何使用Supervisor在不使用Supervisor的时候,我们的代码经常是这么组织的 下面介绍如何用Supervisor来改写上面程序 总结从上面代码可以看出,Supervisor帮助我们处理一些事情 (1)自动去checkpoint加载数据或初始化数据 (2)自身有一个Saver,可以用来保
阅读全文
posted @ 2019-05-23 17:49
细雨微光
阅读(672)
推荐(0)