Skip to content

Resources#

Resources allocated for a preditor can be accessed from the Predictor metadata object.

predictor.resources

Resources allocated for a transformer can be accessed from the Transformer metadata object.

transformer.resources

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.

cores property writable #

cores

Number of CPUs to be allocated per instance.

gpus property writable #

gpus

Number of GPUs to be allocated per instance.

memory property writable #

memory

Memory resources to be allocated per instance.

describe #

describe()

Print a JSON description of the resource configuration.