MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / deepcopy_function

Function deepcopy_function

wan/models/__init__.py:89–90  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

87 from . import wan_transformer3d
88
89 def deepcopy_function(f):
90 return types.FunctionType(f.__code__, f.__globals__, name=f.__name__, argdefs=f.__defaults__,closure=f.__closure__)
91
92 local_rope_apply_qk = deepcopy_function(wan_transformer3d.rope_apply_qk)
93

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected