摘要: C++ unordered_map 使用自定义类作为键类型 C++ unordered_map using a custom class type as the key 阅读全文
posted @ 2022-04-19 08:50 Fitanium 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 得益于反向传播算法,神经网络计算导数时非常方便,下面代码中演示如何使用LibTorch进行自动微分求导。 进行自动微分运算需要调用函数 torch::autograd::grad( outputs, // 为某个可微函数的输出 y=f(x) 中的 y inputs, // 为某个可微函数的输入 y= 阅读全文
posted @ 2022-04-17 15:00 Fitanium 阅读(257) 评论(0) 推荐(1) 编辑
摘要: { # 语言 Language: Cpp, # 水平对齐表达式的操作数 AlignOperands: true, # 不对包含头文件进行排序 SortIncludes: false, # 对齐注释 AlignTrailingComments: true, # 指针、引用的对齐方式 PointerAl 阅读全文
posted @ 2022-02-11 01:34 Fitanium 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Q准则(Q Criterion)在涡识别中计算效率高,效果也不错,是一种常用的涡提取/识别方法。 了解Q准则需要从速度梯度张量入手,而速度梯度张量可以分解成两部分 \[ \frac{\partial u_i}{\partial x_j} = 0.5\left[ \frac{\partial u_i} 阅读全文
posted @ 2022-02-02 17:14 Fitanium 阅读(8884) 评论(0) 推荐(1) 编辑