DatasetContextManager 类
管理数据集下载和装载作的上下文。 此类不应直接使用。
类 DatasetContextManager 构造函数。
构造函数
DatasetContextManager(config, ignore_already_mounted_error=False, force_mount_with_allow_other=False)
参数
| 名称 | 说明 |
|---|---|
|
config
必需
|
传递给上下文管理器的配置。 |
|
ignore_already_mounted_error
|
如果已将某些内容装载到同一文件夹,则忽略装载错误。 默认值: False
|
|
force_mount_with_allow_other
|
如果设置为 true,则会装载allow_other = True(允许访问所有 OS 用户的装入点)。 默认值: False
|