resource_configuration: Initialize the ResourceConfiguration.

Description Usage Arguments Value See Also Examples

View source: R/model.R

Description

Initialize the ResourceConfiguration.

Usage

1
resource_configuration(cpu = NULL, memory_in_gb = NULL, gpu = NULL)

Arguments

cpu

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

memory_in_gb

The amount of memory (in GB) to allocate for this resource. Can be a decimal If TRUE, decode the raw log bytes to a string.

gpu

The number of GPUs to allocate for this resource.

Value

The ResourceConfiguration object.

See Also

register_model_from_run

Examples

1
2
3
4
5
6
7
8
## Not run: 
rc <- resource_configuration(2, 2, 0)

registered_model <- register_model_from_run(run, "my_model_name",
                                            "path_to_my_model",
                                            resource_configuration = rc)

## End(Not run)

azuremlsdk documentation built on Oct. 23, 2020, 8:22 p.m.