05 2024 档案
摘要:使用pytorch的时候,模型训练时,不需要使用forward,只要在实例化一个对象中传入对应的参数就可以自动调用 forward 函数 1 class Module(nn.Module): 2 def __init__(self): 3 super(Module, self).__init__()
阅读全文
摘要:如果不写self,则会报错 加上之后错误就会消失
阅读全文
摘要:项目路径: 实现效果: 代码 1 #ifndef DIALOG_H 2 #define DIALOG_H 3 4 #include <QDialog> 5 #include<QLabel> 6 #include<QLineEdit> 7 #include<QPushButton> 8 9 #incl
阅读全文
摘要:添加前缀和文件 注意images文件夹要在项目子路径下 然后保存即可
阅读全文
摘要:1. C++语言的基础知识体系(函数模板、类与对象、基本的数据变量、sizeof运算符、指针和引用、动态内存分配、智能指针、字符串、函数、函数重载) 2. C++面向对象技术栈(类和对象、构造函数、this指针、const对象和const成员函数,友元、析构函数、运算符重载、继承、多态、虚函数、错误
阅读全文