← 返回事件
持续讨论AI发版

trunk/6c5d1beaefaee454882519fa91a9d6822c1c98b5: Use the auto H2D constants path in the C++ AOTI tests (#195087)

发生了什么

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…

摘要按规则整理自下方来源原文

为什么在扩散

来源