Skip to content

Commit 1b726b2

Browse files
Fix webgpu_native_test build after InputData input migration (#20439)
Summary: `D108428753` migrated `WebGPUGraph::copy_inputs` and `update_symints_from_inputs` to take `const std::vector<InputData>&`, but the `select_as_symint` execute-read case in `test_webgpu_native.cpp` still built its fake input list as `std::vector<std::pair<const void*, size_t>>`, which has no conversion to `std::vector<InputData>`. As a result `webgpu_native_test` failed to compile on `main`. This updates that one call site to construct a `std::vector<InputData>` and pass `host_is_int64=true` for the int64 `input_pos`, matching the landed signature. This diff was authored with assistance from Claude. Differential Revision: D109396824
1 parent f5acbdb commit 1b726b2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

backends/webgpu/test/test_webgpu_native.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,12 +1490,11 @@ static bool test_symint_roundtrip(const std::string& blob_path) {
14901490
return false;
14911491
}
14921492
const auto& in_ids = graph.input_ids();
1493-
std::vector<std::pair<const void*, size_t>> fake_inputs(
1494-
in_ids.size(), {nullptr, 0});
1493+
std::vector<InputData> fake_inputs(in_ids.size());
14951494
int64_t fake_pos = 5;
14961495
for (size_t i = 0; i < in_ids.size(); i++) {
14971496
if (in_ids[i] == srcs[0].input_tensor_id) {
1498-
fake_inputs[i] = {&fake_pos, sizeof(int64_t)};
1497+
fake_inputs[i] = {&fake_pos, sizeof(int64_t), true};
14991498
}
15001499
}
15011500
graph.update_symints_from_inputs(fake_inputs);

0 commit comments

Comments
 (0)