![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
ListenAlone
这个作者很懒,什么都没留下…
展开
-
线程GPU id问题
主线程设置的GPU不会被继承,子线程会默认切换到0号GPU上。需要重新设置工作的GPU id。原创 2022-12-14 14:43:17 · 208 阅读 · 0 评论 -
UTF-8与std::string转换
UTF-8与string之间的转化转载 2022-06-24 15:09:26 · 1073 阅读 · 0 评论 -
TensorRT8.2.4.2反序列化出错
TensorRT8.2.4.2反序列化问题原创 2022-05-28 15:03:26 · 6129 阅读 · 4 评论 -
条件变量的wait会释放锁
原创 2022-02-19 15:08:10 · 837 阅读 · 0 评论 -
c#/ c++ 读取二进制结构体数据
using System;using System.Collections.Generic;using System.IO;using System.Runtime.InteropServices;namespace FuntionTest{ struct RulerPosition { public int rulerX; public int rulerY; public int w; public int h.原创 2021-04-08 15:11:00 · 1034 阅读 · 1 评论 -
关于std::map的注意事项
‘谨以此文纪念在std::map上掉进去的坑’少用[]使用map的[]时,如果[]的key不存在,会在map中添加key,null,本来用map的key存frameId, map的value存放图片的地址,后来全是null,导致无法处理。当前size = 2;使用data[2]后,size = 3最好使用find来寻找...原创 2019-06-27 17:13:41 · 616 阅读 · 0 评论 -
vs c++ reshaper 去掉 use auto
①reshaper ->options②Code Inspection->Inspection Severity③c++ ->Redundancies in Code ->Use 'auto'取消勾选原创 2019-09-11 11:02:18 · 216 阅读 · 0 评论