• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.nn.benchmark.app;
2 
3 import android.app.Application;
4 
5 import com.android.nn.benchmark.core.TestModelsListLoader;
6 
7 import java.io.IOException;
8 
9 public class BenchmarkApplication extends Application {
10     @Override
onCreate()11     public void onCreate() {
12         super.onCreate();
13         try {
14             TestModelsListLoader.parseFromAssets(getAssets());
15         } catch (IOException e) {
16             throw new IllegalStateException("Failed to load test models json", e);
17         }
18 
19     }
20 }
21