Searched refs:assetManager (Results 1 – 7 of 7) sorted by relevance
/test/mlts/benchmark/src/com/android/nn/benchmark/core/ |
D | InferenceInOutSequence.java | 83 public InferenceInOutSequence readAssets(AssetManager assetManager) throws IOException { in readAssets() argument 84 byte[] inputs = IOUtils.readAsset(assetManager, mInputAssetName, mDataBytesSize); in readAssets() 89 outputs[i] = IOUtils.readAsset(assetManager, mOutputAssetsNames[i], mDataBytesSize); in readAssets() 179 final AssetManager assetManager, final File cacheDir) throws IOException { in readDataset() argument 180 String[] allFileNames = assetManager.list(mInputPath); in readDataset() 200 InputStream labelStream = assetManager.open(mLabelAssetName); in readDataset() 212 InputStream truthStream = assetManager.open(mGroundTruthAssetName); in readDataset() 243 assetManager, fileName, cacheDir, buffer); in readDataset()
|
D | EvaluatorConfig.java | 43 public EvaluatorInterface createEvaluator(AssetManager assetManager) { in createEvaluator() argument 53 assetManager, outputMeanStdDev, MeanStdDev.ELEMENT_SIZE_BYTES))); in createEvaluator()
|
D | TestModelsListLoader.java | 171 static public void parseFromAssets(AssetManager assetManager) throws IOException { in parseFromAssets() argument 172 for (String file : assetManager.list(MODELS_LIST_ROOT)) { in parseFromAssets() 178 assetManager.open(MODELS_LIST_ROOT + "/" + file))); in parseFromAssets()
|
D | ImageProcessorInterface.java | 31 int imageDimension, AssetManager assetManager, in preprocess() argument
|
D | NNTestBase.java | 400 AssetManager assetManager = context.getAssets(); in copyAssetToFile() local 404 try (InputStream in = assetManager.open(modelAssetName); in copyAssetToFile()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/util/ |
D | IOUtils.java | 50 public static byte[] readAsset(AssetManager assetManager, String assetFilename, in readAsset() argument 53 try (InputStream in = assetManager.open(assetFilename)) { in readAsset()
|
/test/mlts/benchmark/src/com/android/nn/benchmark/imageprocessors/ |
D | Inception.java | 23 int imageDimension, AssetManager assetManager, in preprocess() argument 26 Bitmap origBitmap = BitmapFactory.decodeStream(assetManager.open(imageFileName)); in preprocess()
|