logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

docker 切换到linux模式

windows 10 pro安装了docker,但是使用的时候一堆不对,后来发现需要切换到linux模式下才对右键“设置”,下图是已经切换到了linux模式,

c++多线程错误:std::thread::thread(const std::thread &)”: 尝试引用已删除的函数

问题“std::thread::thread(const std::thread &)”: 尝试引用已删除的函数解决方案:https://blog.csdn.net/qiukapi/article/details/104818906

#c++#开发语言#后端
测试docker里面的GPU是否可用

**背景:**安装好docker和nvidia-docker以后,需要测试容器里面GPU是否可用:命令1:sudo docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi命令2:sudo docker run --gpus all --rm nvidia/cuda nvidia-smi有时候第一个命令不好使,可以测试一下第二个命...

vscode 文件名绿色,提示数字1

https://stackoverflow.com/questions/48713409/files-in-a-folder-are-highlighted-green-with-a-number-1-next-to-them-what-does····问题vscode里面文件名变成了绿色, 并有个绿色的数字1原因因为。 此文件产生了warning, 并且有且只有一个w...

#vscode
cuda获取gpu当前显存

头文件:cuda_runtime_api.hstatic void gpu_helper(std::string info, bool print_info=false){size_t free_byte;size_t total_byte;cudaError_t cuda_status = cudaMemGetInfo(&free_byte, &total_byte);if (c

c++智能指针 std::unique_ptr的get()

// unique_ptr::get vs unique_ptr::release#include <iostream>#include <memory>int main () {// foobarp// ---------std::unique_ptr<int&g

ubuntu/linux clear命令错误:terminals database is inaccessible

错误: terminals database is inaccessible原因: 我自己从别的主机复制了一份anaconda(路径为/home/anaconda),然后把环境变量配置文件写为了/home/anaconda/bin:$PATH ,再使用clear命令,默认就是/home/anaconda/bin下的clear命令解决方案:在~/.bashrc 文件里面添加 alias clear=

linux 查看docker容器的系统版本

查看容器的系统版本cat /etc/issue查看宿主机的系统版本cat /proc/version 或 uname -a

#linux
pytorch的DataLoader使用细节

背景: 我一开始是对数据扩增这一块有疑问, 只看到了数据变换(torchvisiom.transforms),但是没看到数据扩增, 后来搞明白了, 数据扩增在pytorch指的是torchvisiom.transforms + torch.utils.data.DataLoader+多个epoch共同作用下完成的,数据变换共有以下内容composed = transforms.Compose(..

c++智能指针 std::unique_ptr的get()

// unique_ptr::get vs unique_ptr::release#include <iostream>#include <memory>int main () {// foobarp// ---------std::unique_ptr<int&g

    共 34 条
  • 1
  • 2
  • 3
  • 4
  • 请选择