上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 43 下一页
摘要: neovim 安装插件,并配置vimconig 1. vim 安装 参考这里 sudo apt install vim 2. 插件包管理器安装 Vundle是vim的一个插件管理器, 同时它本身也是vim的一个插件。插件管理器用于方便、快速的安装、删除、Vim更新插件。vim Vundle插件官方地 阅读全文
posted @ 2024-08-27 09:59 michaelchengjl 阅读(361) 评论(0) 推荐(0)
摘要: cmake 报错 The C++ compiler“/usr/bin/g++-9“is not able to compile a simple test https://www.cnblogs.com/minglee/p/9016306.html https://blog.csdn.net/wei 阅读全文
posted @ 2024-07-26 15:31 michaelchengjl 阅读(102) 评论(0) 推荐(0)
摘要: shell 中设置/取消环境变量 查看:env 设置:export 变量名=变量值 删除:unset 变量名 https://blog.csdn.net/mayue_web/article/details/97023615 https://www.cnblogs.com/guanbin-529/p/ 阅读全文
posted @ 2024-07-25 11:13 michaelchengjl 阅读(86) 评论(0) 推荐(0)
摘要: AttributeError: module ‘numpy‘ has no attribute ‘bool‘解决 1. 降级numpy python -m pip install numpy==1.23.1 2. 点击出错文件, 将np.bool更改为np.bool_ 阅读全文
posted @ 2024-07-19 10:22 michaelchengjl 阅读(514) 评论(0) 推荐(0)
摘要: torch topk 使用 这个函数是用来求tensor中某个dim的前k大或者前k小的值以及对应的index。 用法 torch.topk(input, k, dim=None, largest=True, sorted=True, out=None) -> (Tensor, LongTensor 阅读全文
posted @ 2024-07-15 11:33 michaelchengjl 阅读(642) 评论(0) 推荐(0)
摘要: C++ tuple元组的基本用法 https://blog.csdn.net/sevenjoin/article/details/88420885 阅读全文
posted @ 2024-07-15 11:20 michaelchengjl 阅读(14) 评论(0) 推荐(0)
摘要: PyTorch基本操作 1. torch.allclose是一个PyTorch函数,用于检查两个张量是否在某个容忍度范围内近似相等 torch.allclose是一个PyTorch函数,用于检查两个张量是否在某个容忍度范围内近似相等 torch.allclose(input, other, rtol 阅读全文
posted @ 2024-07-05 14:32 michaelchengjl 阅读(128) 评论(0) 推荐(0)
摘要: onnx 算子定义 onnx 1.15.0 onnxruntime 1.16.0 https://github.com/onnx/onnx/blob/v1.15.0/docs/Operators.md#Pow 阅读全文
posted @ 2024-07-04 19:48 michaelchengjl 阅读(31) 评论(0) 推荐(0)
摘要: torch.tensor、numpy.array、list三者之间互相转换 1.1 list 转 numpy ndarray = np.array(list) 1.2 numpy 转 list list = ndarray.tolist() 2.1 list 转 torch.Tensor tenso 阅读全文
posted @ 2024-07-04 17:27 michaelchengjl 阅读(937) 评论(0) 推荐(0)
摘要: 代码格式化工具clang-format https://blog.csdn.net/itas109/article/details/109211464 https://www.sfysoft.com/2022/05/09/ClangFormat-Reference/index.html 阅读全文
posted @ 2024-07-04 17:10 michaelchengjl 阅读(17) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 43 下一页