Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: C++整理 编译 将目标文件预处理、汇编、编译并链接形成可执行文件 g++ xxx 默认输出 a.out g++ xxx -o yyy 指定输出到 yyy 数据变量 数组 vector容器使用: #include vectora 创建一个动态数组a,a的默认初值为0 vectorb(a) 将a中的元素复制到b中 阅读全文
posted @ 2022-11-07 20:51 365/24/60 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 模型保存一般是在epoch结束时保存一次,但这样会存在随机性,可能epoch结束波动比较大,通过在单个epoch中平均多次提升模型鲁棒性 以下为 model_avg 计算过程,通过直接修改 model_avg.state_dict()中storage部分值对应的地址,达到修改model_avg目的 阅读全文
posted @ 2022-10-12 17:57 365/24/60 阅读(36) 评论(0) 推荐(0) 编辑
摘要: linux启动后台服务:nohup sh *** >your_log 2>&1 & 在shell脚本中,默认情况下,总是有三个文件处于打开状态,标准输入(键盘输入)、标准输出(输出到屏幕)、标准错误(也是输出到屏幕),它们分别对应的文件描述符是0,1,2 。 > 默认为标准输出重定向,与 1> 相同 阅读全文
posted @ 2022-10-10 13:21 365/24/60 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 前端面试、ES6、Typescript 阅读全文
posted @ 2022-10-03 15:14 365/24/60 阅读(348) 评论(0) 推荐(2) 编辑
摘要: linuix 编译 开发 阅读全文
posted @ 2022-09-28 23:11 365/24/60 阅读(634) 评论(0) 推荐(0) 编辑
摘要: python解释器位置、常见优化 阅读全文
posted @ 2022-09-24 15:03 365/24/60 阅读(550) 评论(0) 推荐(0) 编辑
摘要: c++编写模块头文件 阅读全文
posted @ 2022-09-24 14:12 365/24/60 阅读(196) 评论(0) 推荐(0) 编辑
摘要: from scipy.signal import correlate aa = np.arange(0,6) bb = np.arange(1,7) correlate(aa , bb) 由上述式子得,可以利用correlate计算aa与bb的相关性 correlate用来计算1-D序列的相关性,类 阅读全文
posted @ 2022-09-03 15:34 365/24/60 阅读(973) 评论(0) 推荐(0) 编辑
摘要: class WSOLA(object): def __init__(self, fs, speech_rate, shiftms=10): self.fs = fs # tensor self.speech_rate = speech_rate # 16000 self.shiftms = shif 阅读全文
posted @ 2022-08-31 21:36 365/24/60 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 虚拟机使用 阅读全文
posted @ 2022-07-27 13:41 365/24/60 阅读(208) 评论(0) 推荐(0) 编辑
摘要: DeepLearning 使用Float、Complex数据类型,而不使用Int、Long等类型 Int64(即Long类型): -2^64 ~ 2^63-1 Float64: 12位(阶数11位、符号一位)、52位(尾数) -(2^52)^1024 ~ (2^51-1)^1024 Complex: 阅读全文
posted @ 2022-06-20 16:13 365/24/60 阅读(153) 评论(0) 推荐(0) 编辑
摘要: conda相关操作 conda是一个python包管理器及环境管理器 创建conda环境:conda create -n YourEnviromentName python=3.6指定版本 激活环境:source active 环境名称, 激活默认环境:source default 当前环境名。实际 阅读全文
posted @ 2022-06-02 16:17 365/24/60 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/JohnTsai/p/4027229.html pycharm professional30天试用期到期问题解决、: 已经添加但在 cmd命令行中还是找不到python 解决:在电脑 >> 属性 >> 高级系统设置 >> 环境变量中编辑或新建,如下将对 阅读全文
posted @ 2022-05-30 18:19 365/24/60 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 音频取样率:1秒钟采样的次数 语音识别服务支持8000HZ/16000HZ,如果超过16000HZ需要先转换为8000HZ,8000HZ的语音数据则只能使用8000HZ的模型 采样位数:每个采样样本的幅度量化 1字节:8bit,256个等级分类 2字节:16bit,65536个等级分类 语音编码:会 阅读全文
posted @ 2022-05-30 00:38 365/24/60 阅读(85) 评论(0) 推荐(0) 编辑
摘要: syntax error near unexpcted token `(' 阅读全文
posted @ 2022-05-23 14:10 365/24/60 阅读(239) 评论(0) 推荐(0) 编辑
摘要: Conv2d 文档注释 def __init__(self, in_channels: int, out_channels: int, kernel_size: tuple[int, ...], stride: tuple[int, ...] = 1, padding: str = 0, dilat 阅读全文
posted @ 2022-05-12 02:11 365/24/60 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: Line_Model import torch import torch.nn as nn import math import random import numpy as np # 计算线性回归模型 梯度 def Cal_SGD_Linear(x, pred, label, lr, k, bia 阅读全文
posted @ 2022-04-18 01:13 365/24/60 阅读(45) 评论(0) 推荐(0) 编辑
摘要: text2token.py:prepare data tools/text2token.py -s 1 -n 1 data/train/text | cut -f 2- -d" " \ | tr " " "\n" | sort | uniq | grep -a -v -e '^\s*$' | \ a 阅读全文
posted @ 2022-04-13 01:00 365/24/60 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 表达式全集 字符 描述 \ 将下一个字符标记为一个特殊字符、或一个原义字符、或一个向后引用、或一个八进制转义符。例如,“n”匹配字符“n”。“\n”匹配一个换行符。串行“\\”匹配“\”而“\(”则匹配“(”。 ^ 匹配输入字符串的开始位置。如果设置了RegExp对象的Multiline属性,^也匹 阅读全文
posted @ 2022-04-11 11:16 365/24/60 阅读(191) 评论(0) 推荐(0) 编辑
摘要: unsqueeze增加维度,unsqueeze(1)在第二维增加一个维度。 squeeze压缩维度,只有目标维度大小唯一时可压缩 m.expand(args) 扩展维度 args后几维必须与m的维度一致, 前面剩余参数 从右至左 依次复制增加到目标维度 tensor.repeat( size) : 阅读全文
posted @ 2022-03-22 22:50 365/24/60 阅读(54) 评论(0) 推荐(0) 编辑