Updated on 2022-11-24 GMT+08:00

Obtaining Engine Types

Sample Code

In ModelArts notebook, you do not need to enter authentication parameters for session authentication. For details about session authentication of other development environments, see Session Authentication.

from modelarts.session import Session
from modelarts.estimatorV2 import Estimator
session = Session()
info = Estimator.get_framework_list(session=session)
print(info)

Parameters

Table 1 get_train_instance_types parameters

Parameter

Mandatory

Type

Description

session

Yes

Object

Session object. For details about the initialization method, see Session Authentication.

Table 2 Successful response parameters of get_framework_list

Type

Description

List

List of engine types. For details, see Table 3.

Table 3 framework_list parameters

Parameter

Type

Description

framework_type

String

Engine type

framework_version

String

Engine version

Table 4 Response for the failure to call a training API

Parameter

Type

Description

error_msg

String

Error message when calling an API failed. This parameter is unavailable if an API is successfully called.

error_code

String

Error code when calling an API failed. For details, see Error Codes. This parameter is unavailable if an API is successfully called.

error_solution

String

Solution to an API calling failure. This parameter is unavailable if an API is successfully called.