DatacacheConsumptionConfig 类

注释

这是一个实验类,随时可能会更改。 有关详细信息,请参阅 https://aka.ms/azuremlexperimental

表示如何将 datacache 传递到计算目标。

表示如何将 datacache 传递到计算目标。

构造函数

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

参数

名称 说明
datacache_store
必需

要用于缓存数据集的 datacachestore。

dataset
必需

需要缓存的数据集。

mode
必需
str

定义如何将 datacache 传递到计算目标。 目前仅支持装载模式。

replica_count
必需
<xref:Int>, Optional, <xref:Defaults to 1>

作业要使用的副本数。

path_on_compute
必需

计算中要提供数据的目标路径。

datacache_store
必需

要用于缓存数据集的 datacachestore。

dataset
必需

需要缓存的数据集。

mode
必需
str

定义如何将 datacache 传递到计算目标。 目前仅支持装载模式。

replica_count
必需
<xref:Int>, Optional

训练作业要使用的副本数。

path_on_compute
必需

计算中要提供数据的目标路径。

方法

as_mount

将 datacache 模式设置为从请求的副本数装载。

在提交的运行中,所需的副本将装载到计算目标上的本地路径。 可以从运行中的参数检索计算上的本地路径。

as_mount

将 datacache 模式设置为从请求的副本数装载。

在提交的运行中,所需的副本将装载到计算目标上的本地路径。 可以从运行中的参数检索计算上的本地路径。

as_mount(path_on_compute=None, replica_count=None)

参数

名称 说明
path_on_compute

计算中要提供数据的目标路径。

默认值: None
replica_count
<xref:Int>

副本数

默认值: None