mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
MI now supports ONNX runtime so the extension should support is as well (#10604)
This commit is contained in:
@@ -43,9 +43,9 @@ export class PredictService {
|
|||||||
let connection = await this.getCurrentConnection();
|
let connection = await this.getCurrentConnection();
|
||||||
if (connection) {
|
if (connection) {
|
||||||
const serverInfo = await this._apiWrapper.getServerInfo(connection.connectionId);
|
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;
|
return false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user