Skip to content

Predictor Resources Config#

[source]

PredictorResourcesConfig#

hsml.resources_config.PredictorResourcesConfig(
    num_instances=None, cores=None, memory=None, gpus=None
)

Resources configuration for predictors and transformers.


Properties#

[source]

cores#

Number of cores.


[source]

gpus#

Number of GPUs.


[source]

memory#

Memory resources.


[source]

num_instances#

Number of instances.


Methods#

[source]

describe#

PredictorResourcesConfig.describe()

[source]

extract_fields_from_json#

PredictorResourcesConfig.extract_fields_from_json(json_decamelized)

[source]

from_json#

PredictorResourcesConfig.from_json(json_decamelized)

[source]

from_response_json#

PredictorResourcesConfig.from_response_json(json_dict)

[source]

json#

PredictorResourcesConfig.json()

[source]

to_dict#

PredictorResourcesConfig.to_dict()