This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Python3.11 支持任务汇总 #360
Labels
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
Python 3.11 支持总体规划见 #357
针对特定的单测可能需要实现新的字节码或修改已有字节码以支持Python3.11,因此每认领一个A任务需要搭配若干个BC任务。
单测任务
test_10_build_unpack.py
AssertionError: Stack must have one element, but get 2 elements.
CALL_FUNCTION_EX
实现差异test_11_jumps.py
sot.utils.exceptions.NotImplementException: opcode: POP_JUMP_FORWARD_IF_FALSE is not supported.
test_11_jumps.py
sot.utils.exceptions.NotImplementException: [Fallback] An exception occurred when processing break graph, fallback to dygraph, error message is: <class 'KeyError'> : 'JUMP_ABSOLUTE'
JUMP_ABSOLUTE
原有的子图打断逻辑中使用的JUMP_ABSOLUTE
已经不再适用了,需要对子图打断逻辑进行适配test_12_for_loop.py
KeyError: 'JUMP_ABSOLUTE'
test_13_make_function.py
IndexError: pop from empty list
MAKE_FUNCTION
的差异test_14_operators.py
AttributeError: 'OpcodeExecutor' object has no attribute 'BINARY_REMAINDER'
BINARY_OP
中 opname 处理方式,将REMAINDER
替换为 Python 字节码中的MUDULO
即可test_15_slice.py
KeyError: 'JUMP_ABSOLUTE'
test_17_paddle_layer.py
[BreakGraph] call function Break graph: <function Layer.__call__ at 0x1307ec9a0> is raise a inline call error. opcode: POP_JUMP_FORWARD_IF_TRUE is not supported.
test_str_format.py
KeyError: 'JUMP_ABSOLUTE'
test_side_effects.py
KeyError: 'CALL_METHOD'
CALL_METHOD
在 Python 3.11 已经删除了,需要适配生成的代码test_19_closure.py
opcode: MAKE_CELL is not supported.
test_21_global.py
KeyError: 'JUMP_ABSOLUTE'
test_constant_graph.py
test_enumerate.py
KeyError: 'JUMP_ABSOLUTE'
test_guard_user_defined_fn.py
sot.utils.exceptions.NotImplementException: Currently don't support predicate a non-const / non-tensor obj, but got PaddleApiVariable(relu, fn, object_0)
test_inplace_api.py
KeyError: 'JUMP_ABSOLUTE'
test_range.py
KeyError: 'JUMP_ABSOLUTE'
test_tensor_dtype_in_guard.py
字节码优化任务
字节码实现任务
CACHE辅助数据,非指令The text was updated successfully, but these errors were encountered: