DatacacheConsumptionConfig Class

Note

This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.

Represent how to deliver the datacache to the compute target.

Represent how to deliver the datacache to the compute target.

Inheritance
builtins.object
DatacacheConsumptionConfig

Constructor

DatacacheConsumptionConfig(datacache_store, dataset, mode='mount', replica_count=None, path_on_compute=None, **kwargs)

Parameters

datacache_store
DatacacheStore
Required

The datacachestore to be used to cache the dataset.

dataset
FileDataset
Required

The dataset that needs to be cached.

mode
str
Required

Defines how the datacache should be delivered to the compute target. Only mount mode is supported currently.

replica_count
<xref:Int>, Optional, <xref:Defaults to 1>
Required

Number of replicas to be used by the job.

path_on_compute
str, Optional
Required

The target path on the compute to make the data available at.

datacache_store
DatacacheStore
Required

The datacachestore to be used to cache the dataset.

dataset
FileDataset
Required

The dataset that needs to be cached.

mode
str
Required

Defines how the datacache should be delivered to the compute target. Only mount mode is supported currently.

replica_count
<xref:Int>, Optional
Required

Number of replicas to be used by the training job.

path_on_compute
str, Optional
Required

The target path on the compute to make the data available at.

Methods

as_mount

Set the datacache mode to mount from requested number of replicas.

In the submitted run, required replicas will be mounted to local path on the compute target. The local path on the compute can be retrieved from the arguments in the run.

as_mount

Set the datacache mode to mount from requested number of replicas.

In the submitted run, required replicas will be mounted to local path on the compute target. The local path on the compute can be retrieved from the arguments in the run.

as_mount(path_on_compute=None, replica_count=None)

Parameters

path_on_compute
str, Optional
default value: None

The target path on the compute to make the data available at.

replica_count
<xref:Int>
default value: None

Number of replicas