Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ protected void onCreate(Bundle savedInstanceState) {
.get();

int numIter = intent.getIntExtra("num_iter", 50);
int numWarmupIter = intent.getIntExtra("num_warm_up_iter", 5);

// TODO: Format the string with a parsable format
Stats stats = new Stats();
Expand All @@ -58,6 +59,10 @@ protected Void doInBackground(Void... voids) {
stats.errorCode = module.loadMethod("forward");
stats.loadEnd = System.nanoTime();

for (int i = 0; i < numWarmupIter; i++) {
module.forward();
}

for (int i = 0; i < numIter; i++) {
long start = System.nanoTime();
module.forward();
Expand Down
Loading