自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Eureka

真的只是瞎逼写写,大家就当看个乐呵......

  • 博客(12)
  • 收藏
  • 关注

转载 Normalization method

相关资料 What’s the difference between layer normalization and batch normalization? https://stackoverflow.com/questions/44941231/can-i-use-layer-normalization-with-cnn TensorFlow code of batch norm/layer ...

2018-10-26 01:52:26 186

转载 Python nicest way to pad zeroes to a string

Strings: >>> n = '4' >>> print n.zfill(3) 004 And for numbers: >>> n = 4 >>> print '%03d' % n 004 >>&

2018-10-25 03:24:36 165

原创 Linux remove the files whose names match a certain pattern

Use find command to find all of the files first find . -name '*.jpg If the files shown are exactly the ones that you want, you can delete them with the following command: find . -name '*.orig' #-del...

2018-10-23 06:02:57 200

原创 Python MemoryError Problem

Python的内存管理相对于C++来说相当低效已经是老生之谈了。今天遇到了一个内存问题,大概是我想拿30000×51230000\times{512}30000×512的一个矩阵来和它自己的转秩做类似内积的运算。在Python中查看一个变量占多少内存的指令如下: import numpy as np from sys import getsizeof a = [0] * 1024 b = np.a...

2018-10-15 02:42:09 2099

原创 Python 环境部署之readline以及no root权限下的挣扎

如果是源码安装Python而非使用Anaconda全家桶的话,进入Python往往会遇到这样的情况:使用Left,Right,Up来控制光标的移动以及输入历史命令会无效,而是显示诸如Left(^[[D), Right(^[[C), Up(^[[A)的情况。这里主要是少了dev version of the ncurses5 library。只需要执行 sudo apt-get install li...

2018-10-13 03:51:42 785 1

原创 Linux learn awk and sed to a minimal limit (Keep Updating)

1 Introduction My work mostly focuses on natural language processing, which means I spend lots of time dealing with text files. From the bottom of my heart (maybe not right), I believe the cleansing p...

2018-10-12 06:52:06 357

原创 Tensor2Tensor GPU Memory Error During Training

When I was training Transformer based on 12M+ source sentences and equal number of target sentences (batch size equals 4096, platform is 4×TITANXp4\times{TITAN Xp}4×TITANXp), it reports error like thi...

2018-10-11 04:03:45 1100

转载 Linux文本搜索

寻找特定文件名的命令 find /path/to/search -name "fileofinterest.txt" 在文件夹下就内容的关键词进行查询,摘自 How do I find all files containing specific text on Linux? Do the following: grep -rnw '/path/to/somewhere/' -e 'pattern...

2018-10-10 06:11:46 649

原创 Linux 深度学习训练log debug工作流

程序运行输出重定向: 这里我使用的脚本是./translate_enzh_train.sh,根据具体情况修改这个。一般会结合nohup或者disown使用。 ./translate_enzh_train.sh 1>>suc.txt 2>>err.txt 对Log进行实时观测 watch -n 10 tail -n 15 err.txt 每10秒就在屏幕上打印输出log...

2018-10-09 23:36:33 669

原创 Linux Vim 分屏使用小记

Open multiple screens: :split /path/to/file split the screen vertically with original file and new file Switch between different screens: Control+W followed by W to toggle between open windows and, Co...

2018-10-09 23:00:39 234

原创 Linux后台运行程序命令

将命令在后台运行最常见的是nohup命令,这里不赘述,具体可参考: https://www.jianshu.com/p/fcc8894923f7 而最常发生的是,我们直接运行了一个命令,但是没有使用nohup,后期又希望能够让这个程序在后台运行,即使关闭了当前的terminal,程序也能如旧运行,这个时候往往需要 ctrl+z bg disown 关于disown的细节可参考: https:/...

2018-10-09 22:21:10 1444

原创 Linux查看CPU信息以及其他

查看当前系统内核信息 uname -a 查看当前操作系统发行版信息 Ubuntu 18.04.1 LTS \n \l 查看CPU型号 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c You can get: 4 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz Interpret th...

2018-10-09 01:54:05 947

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除