aihwkit.cloud.client.v1.api_client module

API client the AIHW Composer API.

class aihwkit.cloud.client.v1.api_client.ApiClient(session)[source]

Bases: object

API client the AIHW Composer API.

Client for interfacing with the AIHW Composer API. Upon instantiation, the client will attempt to login (using the details from the session).

The functionality is provided by the stubs that are created during the instantiation, providing an interface that which mimic the REST API endpoints.

Parameters

session (aihwkit.cloud.client.session.ApiSession) –

experiment_create(input_, name, device='gpu')[source]

Create a new experiment, queuing its execution.

Parameters
Returns

A CloudExperiment.

Return type

aihwkit.cloud.client.entities.CloudExperiment

experiment_get(experiment_id)[source]

Get an existing job by id.

Parameters

experiment_id (str) – id of the experiment.

Returns

A CloudExperiment with the specified id.

Return type

aihwkit.cloud.client.entities.CloudExperiment

experiments_list()[source]

Return a list of experiments.

Return type

List[aihwkit.cloud.client.entities.CloudExperiment]

input_get(input_id)[source]

Get an existing input by id.

Parameters

input_id (str) – id of the input.

Returns

The input with the specified id, in protobuf format.

Return type

bytes

job_get(job_id)[source]

Get an existing job by id.

Parameters

job_id (str) – id of the job.

Returns

A CloudJob with the specified id.

Return type

aihwkit.cloud.client.entities.CloudJob

login()[source]

Login into the application.

Raises
Return type

None

output_get(output_id)[source]

Get an existing output by id.

Parameters

output_id (str) – id of the output.

Returns

The output with the specified id, in protobuf format.

Return type

bytes