1 2 3 4 5 ··· 32 下一页
摘要: 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 阅读(1) 评论(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 阅读(2) 评论(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 阅读(3) 评论(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 阅读(4) 评论(0) 推荐(0) 编辑
摘要: C++ tuple元组的基本用法 https://blog.csdn.net/sevenjoin/article/details/88420885 阅读全文
posted @ 2024-07-15 11:20 michaelchengjl 阅读(3) 评论(0) 推荐(0) 编辑
摘要: PyTorch基本操作 torch.allclose是一个PyTorch函数,用于检查两个张量是否在某个容忍度范围内近似相等 torch.allclose(input, other, rtol=1e-05, atol=1e-08, equal_nan=False) input (Tensor) – 阅读全文
posted @ 2024-07-05 14:32 michaelchengjl 阅读(5) 评论(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 阅读(1) 评论(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 阅读(60) 评论(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 阅读(2) 评论(0) 推荐(0) 编辑
摘要: TensorFlow中numpy与tensor数据相互转化(支持tf1.x-tf2.x) TF 1.x版本 有时候解决起来很简单,就是错误比较难找到,所以我推荐的方法为将数据进行显式的转化。 Numpy2Tensor 虽然TensorFlow网络在输入Numpy数据时会自动转换为Tensor来处理, 阅读全文
posted @ 2024-07-04 11:05 michaelchengjl 阅读(6) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 32 下一页