Home
last modified time | relevance | path

Searched refs:assetManager (Results 1 – 7 of 7) sorted by relevance

/test/mlts/benchmark/src/com/android/nn/benchmark/core/
DInferenceInOutSequence.java83 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()
DEvaluatorConfig.java43 public EvaluatorInterface createEvaluator(AssetManager assetManager) { in createEvaluator() argument
53 assetManager, outputMeanStdDev, MeanStdDev.ELEMENT_SIZE_BYTES))); in createEvaluator()
DTestModelsListLoader.java171 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()
DImageProcessorInterface.java31 int imageDimension, AssetManager assetManager, in preprocess() argument
DNNTestBase.java400 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/
DIOUtils.java50 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/
DInception.java23 int imageDimension, AssetManager assetManager, in preprocess() argument
26 Bitmap origBitmap = BitmapFactory.decodeStream(assetManager.open(imageFileName)); in preprocess()