Scirocco
V2EX  ›  OpenAI

如何调校 GPT4,让它帮我把代码从 TF 迁移到 pytorch?

  •  
  •   Scirocco ·
    Sciroccogti · Jan 28, 2024 · 1582 views
    This topic created in 842 days ago, the information mentioned may be changed or developed.

    最近才开始用 GPT 写代码,之前都是拿来当搜索引擎用

    手上有个别人开源的网络,用 tf1 写的,勉强改成了 tf2 跑起来了,现在需要改成 torch

    目前用 copilot 写了一版,但是因为文件还挺长的,只能分段读取,有很多不太对的地方

    然后现在尝试用 GPT4 写,它每次都不把代码写全,有很多模板代码:

    # Adding more layers as an example
            self.conv2 = nn.Conv2d(in_channels=?, out_channels=?, kernel_size=?, stride=?, padding=?)
            self.fc1 = nn.Linear(in_features=?, out_features=?)  # Fully connected layer
            self.fc2 = nn.Linear(in_features=?, out_features=?)  # Another fully connected layer
    

    总体完成度远不如 copilot 。

    有没有 v 友之前试过让 GPT 改写网络的?我感觉这是一个挺常见的场景。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3586 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 04:42 · PVG 12:42 · LAX 21:42 · JFK 00:42
    ♥ Do have faith in what you're doing.