MI now supports ONNX runtime so the extension should support is as well (#10604)

This commit is contained in:
Leila Lali
2020-05-28 13:36:16 -07:00
committed by GitHub
parent 6cf8f9ff35
commit 0d544660e0

View File

@@ -43,9 +43,9 @@ export class PredictService {
let connection = await this.getCurrentConnection();
if (connection) {
const serverInfo = await this._apiWrapper.getServerInfo(connection.connectionId);
// Right now only Azure SQL Edge support Onnx
// Right now only Azure SQL Edge and MI support Onnx
//
return serverInfo && serverInfo.engineEditionId === 9;
return serverInfo && (serverInfo.engineEditionId === 9 || serverInfo.engineEditionId === 8);
}
return false;
} catch (error) {