Skip to content

hsml.resources #

[source] Resources #

Resource configuration for a predictor or transformer.

PARAMETER DESCRIPTION
cores

Number of CPUs.

TYPE: int

memory

Memory (MB) resources.

TYPE: int

gpus

Number of GPUs.

TYPE: int

RETURNS DESCRIPTION

Resources. Resource configuration for a predictor or transformer.

[source] cores property writable #

Number of CPUs to be allocated per instance.

[source] memory property writable #

Memory resources to be allocated per instance.

[source] gpus property writable #

Number of GPUs to be allocated per instance.

[source] describe #

describe()

Print a JSON description of the resource configuration.