1 | from datetime import datetime |
ln -s all files
发表于 | 阅读次数:
1 | ln -s ../source/*.bar . |
latex 表格
发表于 | 阅读次数:
1 | \usepackage{multirow} |
tensorboard常量写入
发表于 | 阅读次数:
1 | summary = tf.Summary() |
tensorboard
发表于 | 阅读次数:
1 | fw = tf.summary.FileWriter(LOGS_DIR) # LOGS_DIR should correspond to the path you want to save the summaries in |
tf运行失败
发表于 | 阅读次数:
回退到tf=14.0.0
vim删除^M
发表于 | 阅读次数:
1 | :%s/\r//g |
打开文件
1 | :set ff=unix |
安装tensorflow
发表于 | 阅读次数:
1 | pip3 uninstall tensorflow-gpu |
gcc make
发表于 | 阅读次数:
栗子🌰
1 | g++ -c -o main.o main.cpp |
编译的时候
报错
:
1 | struct Poo; |
正确
:
1 | struct Poo; |
定义和声明
extern int a;
int a;
“一个结构体/类在定义的时候会产生它的各种指针, 其中最重要的是它的函数地址表。”
Excerpt From: lexdene. “gcc五分钟系列.” iBooks.
结构体内部的成员变量是初始化分配空间的。
为什么会有编译器错误
因为有的变量是private,得看到定义才能确定是否可以这样。