- 博客(5)
- 收藏
- 关注
原创 安装torch2.3.0时报错:shm.dll or one of its dependencies.
mkl和torch的版本对不上,一般来说torch 2.3.0 requires mkl=2021.1.1;platform_system == “Windows”, but you have mkl 2024.1.0 which is incompatible.安装mkl2021.4.0就可以正常使用torch了,以后安装torch时需要注意安装对应版本的mkl。
2024-05-23 17:50:37
1538
原创 图解链表逆转
// 返回逆转后的链表头结点ListNode* _ReverseList(ListNode *head) { ListNode *prev = nullptr, *curr = head; while (curr) { ListNode *nextTemp = curr->next; // prev与curr反转之前先保存curr的下一个位置 curr->next = prev; prev = curr; cu.
2022-02-13 01:02:49
653
原创 C语言typedef的一种理解
先来看几个例子// 1、为int起别名typedef int INT;// 2、定义一个长度为20的char数组类型typedef char CHAR20[20];//3、定义一个返回int的无参函数指针类型typedef int (*pIntFun)(void);上面几例中,如果忽略typedef关键字,会发现这些语句都只是在进行普通的变量声明而已,而typedef关键字的作用就是将这些声明的变量名称作为一种新的数据类型。...
2022-02-11 14:07:50
1482
原创 C#矩阵求逆-初等行列变换
class Matrix { public double[, ] Element { get; set; } public int Rows { get { return Element.GetLength(0); } } public int Columns { get { return Element.GetLength(1); } } //创建索引属性 public double this[int row, i...
2021-07-30 02:26:59
515
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人