ResourceConfiguration class

Definition

Class containing details for the resource configuration for AML resources.

Initialize the resource configuration.

ResourceConfiguration(cpu=None, memory_in_gb=None, gpu=None)
Inheritance
builtins.object
ResourceConfiguration

Parameters

cpu
float

The number of CPU cores to allocate for this resource. Can be a decimal

memory_in_gb
float

The amount of memory (in GB) to allocate for this resource. Can be a decimal

gpu
int

The number of GPUs to allocate for this resource.

Methods

deserialize(payload_obj)

Convert a json object into a ResourceConfiguration object.

serialize()

Convert this ResourceConfiguration into a json serialized dictionary.

deserialize(payload_obj)

Convert a json object into a ResourceConfiguration object.

deserialize(payload_obj)

Parameters

payload_obj
dict

A json object to convert to a ResourceConfiguration object

Returns

The ResourceConfiguration representation of the provided json object

Return type

serialize()

Convert this ResourceConfiguration into a json serialized dictionary.

serialize()

Returns

The json representation of this ResourceConfiguration

Return type