相关文章
用mkdocs写文档#自动更新github-page
https://wuyisheng.github.io/blog 背景是上一篇博客 使用mkdocs,最后提及可以部署github page。这里说明下怎么自动部署。
当然,这篇博客主要的目的还是提供下github page的链接 :)
我是这样做的:
step 1:
pip3 i…
建站知识
2025/4/27 17:36:20
Mysql 索引性能分析
1.查看CRUD次数
show global status like Com_______(7个下划线) show global status like Com_______ 2.慢SQL分析 SET GLOBAL slow_query_log ON;-- 设置慢SQL日志记录开启 SET GLOBAL long_query_time 2; -- 设置执行超过 2 秒的查询为慢查询 开…
建站知识
2025/4/22 0:34:44
C语言pthread库的线程休眠和唤醒的案例
一、代码如下 #include<stdio.h> #include<pthread.h> // 定义独占锁 pthread_mutex_t mutex; // 定义条件信号对象 pthread_cond_t condition; // 初始化函数 void init(){ int code pthread_mutex_init(&mutex, NULL); printf("共享锁初…
建站知识
2025/5/1 3:09:24
Pytorch学习笔记(十八)Image and Video - DCGAN Tutorial
这篇博客瞄准的是 pytorch 官方教程中 Image and Video 章节的 DCGAN Tutorial 部分。
官网链接:https://pytorch.org/tutorials/beginner/dcgan_faces_tutorial.html
完整网盘链接: https://pan.baidu.com/s/1L9PVZ-KRDGVER-AJnXOvlQ?pwdaa2m 提取码: aa2m 【注…
建站知识
2025/5/1 20:29:38
算法--递归、搜索与回溯
目录 原理经典例题[面试题 08.06. 汉诺塔问题](https://leetcode.cn/problems/hanota-lcci/)[21. 合并两个有序链表](https://leetcode.cn/problems/merge-two-sorted-lists/description/)[206. 反转链表](https://leetcode.cn/problems/reverse-linked-list/)[24. 两两交换链表…
建站知识
2025/4/22 6:01:58
LeetCode算法题(Go语言实现)_15
题目 给你字符串 s 和整数 k 。 请返回字符串 s 中长度为 k 的单个子字符串中可能包含的最大元音字母数。 英文中的 元音字母 为(a, e, i, o, u)。 一、代码实现
func maxVowels(s string, k int) int {vowels : map[byte]bool{a:true, e:true, i:true,…
建站知识
2025/5/1 11:37:09
debug 笔记:llama 3.2 部署bug 之cutlassF: no kernel found to launch!
1 问题描述
按照官方的写法
import torch
from transformers import pipeline
import os
os.environ["HF_TOKEN"] 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
model_id "meta-llama/Llama-3.2-3B"pipe pipeline("text-generation", modelmode…
建站知识
2025/4/29 16:32:26