To enable support of the utbot-analytics-torch models in utbot-intellij module the following steps should be made:
- change the row
api project(':utbot-analytics')to theapi project(':utbot-analytics-torch')in thebuild.gradlefile in theutbot-intellijmodule and uncomment it, if it's commented. - change the
pathSelectorTypein theUtSettings.ktto thePathSelectorType.TORCH_SELECTOR - don't forget the put the Torch model in the path ruled by the setting
modelPathin theUtSettings.kt
NOTE: for Windows you could obtain the error message related to the "engine not found problem" from DJL library during the Torch model initialization. The proposed solution from DJL authors includes the installation of the Microsoft Visual C++ Redistributable.
But at this moment it doesn't work on Windows at all.