摘要:        
ViT 实现了将 Transformer 应用到 CV 领域。 模型定义 import torch as th import torch.nn as nn class SimpleViT(nn.Module): def __init__( self, image_size=28, image_dim    阅读全文
posted @ 2025-06-17 22:44
Undefined443
阅读(18)
评论(0)
推荐(0)
        
            
        
        
摘要:        
Setup pip install torch torchvision -i https://download.pytorch.org/whl/cu126 定义模型和数据: from torchvision.models import resnet18 import torch as th x =     阅读全文
posted @ 2025-06-17 19:06
Undefined443
阅读(22)
评论(0)
推荐(0)
        
            
        
        
摘要:        
tcc(Tiny C Compiler)是一个轻量级的 C 编译器。可以将 C 语言以脚本的形式运行。 安装 tcc: sudo apt install tcc 编写代码: vim main.c #!/usr/bin/tcc -run #include <stdio.h> int main() {     阅读全文
posted @ 2025-06-17 02:39
Undefined443
阅读(22)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号