MCPcopy Create free account
hub / github.com/Niko1221/Strata / main

Function main

engine/src/kernels/batch_rows_parity.cpp:257–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255} // namespace
256
257int main() {
258 std::printf("batch rows parity (#2234 kernels against the per-row launches)\n");
259 for (int r : {1, 2, 4, 8}) scores_case(r);
260 for (int r : {1, 3, 8}) {
261 attn_case(r, true);
262 attn_case(r, false);
263 }
264 gdn_case({1}, false);
265 gdn_case({1, 1, 1, 1}, false);
266 gdn_case({2, 2, 2, 2}, false);
267 gdn_case({1, 3, 2, 1, 1}, false);
268 gdn_case({1, 1, 1, 1, 1, 1, 1, 1}, false);
269 gdn_case({1}, true);
270 gdn_case({1, 1, 1, 1}, true);
271 gdn_case({1, 1, 1, 1, 1, 1, 1, 1}, true);
272 std::printf("%s\n", bad ? "batch_rows_parity: FAILED" : "batch_rows_parity: ok");
273 return bad ? 1 : 0;
274}

Callers

nothing calls this directly

Calls 3

scores_caseFunction · 0.85
attn_caseFunction · 0.85
gdn_caseFunction · 0.85

Tested by

no test coverage detected