Skip to content

Runtime device kwargs cannot take in values with curly brakets or nested dictionaries #1505

Open
@paul0403

Description

@paul0403

Due to an implementation detail, namely the way the device kwargs are parsed in the runtime , there is an implicit assumption that the values of the kwargs, when converted to strings, cannot have curly brackets.

For example (pseudocode):

kwargs = "{ 'test' : '{5:{6:3.14}, 1:2, 3:4}' }" 
std::cout << parse_kwargs(kwargs)["test"];   

----------
5:6:3.14

This causes issues when, for example, a python dictionary is passed in as a kwarg, or if some devices pass in a JSON schema as a kwarg during that device's dialect lowering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruntimePull requests that update the runtime

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions