上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 52 下一页

2023年6月13日

摘要: import os import io import json import torch from PIL import Image from flask import Flask, jsonify, request, render_template from flask_cors import C 阅读全文
posted @ 2023-06-13 16:54 张博的博客 阅读(123) 评论(0) 推荐(0) 编辑

2023年6月8日

摘要: import gradio as gr demo = gr.Blocks(css="""#btn {color: red} .abc {font-family: "Comic Sans MS", "Comic Sans", cursive !important}""") a=333 #这里面加上保证 阅读全文
posted @ 2023-06-08 10:11 张博的博客 阅读(30) 评论(0) 推荐(0) 编辑

2023年6月6日

摘要: #Setup envirnment #大概使用59个G内存. conda create -n langchain python=3.8.1 -y conda activate langchain # 拉取仓库 git clone https://github.com/imClumsyPanda/la 阅读全文
posted @ 2023-06-06 15:14 张博的博客 阅读(459) 评论(2) 推荐(0) 编辑
摘要: #Setup envirnment conda create -n langchain python=3.8.1 -y conda activate langchain # 拉取仓库 git clone https://github.com/imClumsyPanda/langchain-ChatG 阅读全文
posted @ 2023-06-06 14:34 张博的博客 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #Setup envirnment !conda create -n langchain python=3.8.1 -y !conda activate langchain # 拉取仓库 #!git clone https://github.com/imClumsyPanda/langchain-C 阅读全文
posted @ 2023-06-06 14:26 张博的博客 阅读(263) 评论(0) 推荐(0) 编辑

2023年6月5日

摘要: #=写入项目临时代码 #注意代码前面加r ,防止转移的干扰 aaa=r''' #!/usr/bin/env python # coding=utf-8 # Copyright 2023 The HuggingFace Inc. team. All rights reserved. # # Licen 阅读全文
posted @ 2023-06-05 20:13 张博的博客 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 2023-06-05,10点24colab: argparse: #args = parse_args() parser.parse_known_args()[0] 阅读全文
posted @ 2023-06-05 10:24 张博的博客 阅读(20) 评论(0) 推荐(0) 编辑

2023年6月1日

摘要: assume cs:code ; 记忆点: 1.主函数, 子函数都需要自己维护bp和sp(当然不维护也行,但是非常容易出bug,所以还是要强烈按照下面子函数头,子函数尾.主函数头尾这么写,最安全.) 2. 函数ip都有压栈出站自动维护但是自己要算明白栈的偏移量. code segment radd 阅读全文
posted @ 2023-06-01 10:29 张博的博客 阅读(16) 评论(0) 推荐(0) 编辑

2023年5月30日

摘要: int add_a_and_b(int a, int b) { return a + b; } int main() { return add_a_and_b(2, 3); } _add_a_and_b: push %ebx mov %eax, [%esp+8] mov %ebx, [%esp+12 阅读全文
posted @ 2023-05-30 15:03 张博的博客 阅读(65) 评论(0) 推荐(0) 编辑

2023年5月22日

摘要: //函数指针的定义: 函数的返回值类型(*指针名)(函数的参数列表类型) //函数指针例子: void Add(int x, int y){ return x+y;} int main(){ int (*pf)(int,int)=&Add; int ret=(*pf)(3,5); } //返回值为函 阅读全文
posted @ 2023-05-22 10:14 张博的博客 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 52 下一页

导航