Skip to content

Commit cd09619

Browse files
committed
Debug
1 parent 6cb6af9 commit cd09619

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#import <executorch/extension/module/module.h>
1212
#import <executorch/extension/tensor/tensor.h>
13+
#include <os/proc.h>
1314

1415
using namespace ::executorch::extension;
1516
using namespace ::executorch::runtime;
@@ -50,9 +51,11 @@ @implementation GenericTests
5051
[testCase
5152
measureWithMetrics:@[ [XCTClockMetric new], [XCTMemoryMetric new] ]
5253
block:^{
53-
XCTAssertEqual(
54-
Module(modelPath.UTF8String).load_forward(),
55-
Error::Ok);
54+
// DEBUG
55+
XCTAssertGreaterThan(os_proc_available_memory(), 8589934592);
56+
//XCTAssertEqual(
57+
// Module(modelPath.UTF8String).load_forward(),
58+
// Error::Ok);
5659
}];
5760
},
5861
@"forward" : ^(XCTestCase *testCase) {

0 commit comments

Comments
 (0)