AbstractComputeTarget class

Definition

An abstract class for a compute targets.

AbstractComputeTarget(compute_target_type, name)
Inheritance
builtins.object
AbstractComputeTarget

Methods

deserialize_from_dict(compute_target_name, compute_target_dict)

De-serialize compute_target_dict and returns the corresponding compute target object.

deserialize_from_dict(compute_target_name, compute_target_dict)

De-serialize compute_target_dict and returns the corresponding compute target object.

deserialize_from_dict(compute_target_name, compute_target_dict)

Parameters

compute_target_name
str

The compute target name, basically <compute_target_name>.compute file.

compute_target_dict
dict

The compute target dict, loaded from the on-disk .compute file.

Returns

The target specific compute target object.

Return type

AbstractComputeTarget

Attributes

name

Return compute target name.

Returns

Returns name of the compute target.

Return type

str

type

Return compute target type.

Returns

Returns the compute target type.

Return type

str