Skip to content

config component shouldn't allow duplicated arguments #5471

@wyli

Description

@wyli

Describe the bug

"dataset": {
    "_target_": "CacheDataset",
    "num_workers": 0,
    "num_workers": 4
},

in this configuration example, the duplicated num_workers is currently quietly allowed, which is error-prone in my understanding

cc @Nic-Ma

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions