Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
11 KiB
Querying the List of Engine Types
Sample Code
In the ModelArts notebook instance, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see Session Authentication.
1 2 3 4 | from modelarts.session import Session from modelarts.estimator import Estimator session = Session() engine_list = Estimator.get_framework_list(modelarts_session=session) |
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
modelarts_session |
Yes |
Object |
Session object. For details about the initialization method, see Session Authentication. |
Type |
Description |
---|---|
List |
List of engine flavor attributes. For details, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
framework_type |
String |
Engine type |
framework_version |
String |
Engine version |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code when the API call fails. This parameter is not included when the API call succeeds. |
error_msg |
String |
Error message when the API call fails. This parameter is not included when the API call succeeds. |