Skip to content

Commit bedecd8

Browse files
author
Github Executorch
committed
Replace ones with rand to workaround the crash from sdpa kernel
1 parent 6cb6af9 commit bedecd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extension/benchmark/apple/Benchmark/Tests/GenericTests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ @implementation GenericTests
7878

7979
const auto sizes = tensor_meta->sizes();
8080
tensors.emplace_back(
81-
ones({sizes.begin(), sizes.end()}, tensor_meta->scalar_type()));
81+
rand({sizes.begin(), sizes.end()}, tensor_meta->scalar_type()));
8282
XCTAssertEqual(module->set_input(tensors.back(), index), Error::Ok);
8383
} break;
8484
default:

extension/benchmark/apple/Benchmark/Tests/LLaMA/LLaMATests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ @implementation LLaMATests
8787
tokensPerSecondMetric.tokenCount = 0;
8888
const auto status = runner->generate(
8989
"Once upon a time",
90-
128,
90+
50,
9191
[=](const std::string &token) {
9292
tokensPerSecondMetric.tokenCount++;
9393
},

0 commit comments

Comments
 (0)