assetFilePath() — pytorch Function Reference
Architecture documentation for the assetFilePath() function in PytorchHostTests.java from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 8c6c2996_83d3_bd1f_4f22_d00fce75aff8["assetFilePath()"] 13a73024_d937_6f99_6235_63710a52c29e["loadModel()"] 13a73024_d937_6f99_6235_63710a52c29e -->|calls| 8c6c2996_83d3_bd1f_4f22_d00fce75aff8 style 8c6c2996_83d3_bd1f_4f22_d00fce75aff8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
android/pytorch_android/src/androidTest/java/org/pytorch/PytorchHostTests.java lines 17–24
private String assetFilePath(String assetName) throws IOException {
Path tempFile = Files.createTempFile("test", ".pt");
try (InputStream resource =
Objects.requireNonNull(getClass().getClassLoader().getResourceAsStream("test.pt"))) {
Files.copy(resource, tempFile, StandardCopyOption.REPLACE_EXISTING);
}
return tempFile.toAbsolutePath().toString();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does assetFilePath() do?
assetFilePath() is a function in the pytorch codebase.
What calls assetFilePath()?
assetFilePath() is called by 1 function(s): loadModel.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free