trunk/b74c3864e80a297ab81441720f8215970ae049e4: [dynamo] Support bytearray.append() and extend() (#199675)
- PyTorch 近 90 天出现 2442 次
- PyTorch 近 90 天第 2409 次发版
- 上一次:同一天稍早 · trunk/0f70ba77a0a852de219834715079daa2710f0698: [MPS] Run test_unary_ufuncs on MPS (#200952)
发生了什么
ByteArrayVariable had no append/extend, so calling either on a bytearray graph broke. This adds both to tp_methods. Both follow the existing in-place ops on ByteArrayVariable (+=, *=, %=): build the result in a new buffer, record the mutation with side_effects, and swap self.data. For a bytearray that came in as an input, the existing bytearray_mutation replay handler writes the result back with old[:] = new after t…
摘要按规则整理自下方来源原文