Closed AsakusaRinne closed 1 year ago
例如,forward代码中出现y = int(x)这种写法,在外部无论是对int还是int.__new__进行wrap,都不能正常代理。
y = int(x)
int
int.__new__
pytorch可以正常代理这种情况么
这个后来发现其实pytorch.fx和one-fx都是可以代理这个的,当时其实是因为fx.wrap没有写在模型所在的模块这里,我误以为是int类型没法wrap,我把这个issue先关一下。
例如,forward代码中出现
y = int(x)
这种写法,在外部无论是对int
还是int.__new__
进行wrap,都不能正常代理。