MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / main

Function main

codegeex/paddle/pt_to_pdparams.py:47–50  ·  view source on GitHub ↗
(opt)

Source from the content-addressed store, hash-verified

45
46
47def main(opt):
48 state_dict = torch.load(opt.pt)
49 WalkDict(state_dict)
50 paddle.save(state_dict, opt.pdparams)
51
52
53if __name__ == "__main__":

Callers 1

pt_to_pdparams.pyFile · 0.70

Calls 1

WalkDictFunction · 0.85

Tested by

no test coverage detected