fix: remove Copied from comments between @torch.jit.script and def for Python 3.13 compat (#44986)
fix: remove `# Copied from` comments between @torch.jit.script and def for Python 3.13 compat
On Python 3.13, placing a comment between @torch.jit.script and the
function definition causes an IndentationError when torch.jit.script
calls inspect.getsource() followed by ast.parse(). The stricter parser
in Python 3.13 fails to associate the function body with the def when
a comment intervenes.
Remove the `# Copied from` comments from the three affected functions
(c2p_dynamic_expand, p2c_dynamic_expand, pos_dynamic_expand) in both
modeling_deberta_v2.py and modeling_sew_d.py, as suggested by the
maintainer in issue #44855.
Fixes #44855