trunk/6c5d1beaefaee454882519fa91a9d6822c1c98b5: Use the auto H2D constants path in the C++ AOTI tests (#195087)
- PyTorch: 1223 events in the last 90 days
- PyTorch: 1209th Release in the last 90 days
- Previous: earlier the same day · trunk/89bc0292173a1dd881d27616f60c2001eecc792c: [dynamo] Support delattr on exception attributes (#196722)
What happened
update_constant_buffer rejects constants not on the container's device ( #181114 ), so the tests' CPU at::randn replacement tensors failed on CUDA. Route them through update_constant_buffer_from_cpu , which auto-copies CPU tensors to the container's device; the plain entry keeps rejecting cross-device input by design. test_aoti_free_buffer (memory accounting), test_aoti_extract_constants_map ( allclose cannot compar…
Summary assembled by rule from the sources below