This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
部分涉及property的运算存在问题 #169
Comments
PaddleSOT/sot/opcode_translator/executor/variables/basic.py Lines 206 to 223 in d8d7c7c
将这个分支上调即可 这是因为 paddle_tensor_methods 是从 paddle.static.Variable 自动获取的,在 Variable 上 size 是一个 method 而不是 property,故而走错分支 我之后的 PR 应该会顺手修一下这个~ |
好滴,明白啦 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
期望和动态图有相同结果

实际上会报错

此时如果是 x + x.size() 结果会是正确的,但是动态图会报错(因为x.size是整数)
@SigureMo @2742195759
The text was updated successfully, but these errors were encountered: