the document is:
–load-inputs LOAD_INPUTS [LOAD_INPUTS …], --load-input-data LOAD_INPUTS [LOAD_INPUTS …]
[EXPERIMENTAL] Path(s) to load inputs. The file(s)
should be a JSON-ified List[Dict[str, numpy.ndarray]],
i.e. a list where each element is the feed_dict for a
single iteration. Other data loader options are
ignored when this option is used
but it is still opaque.
When I want to save my input from my program, and use it as input for polygraphy, What kind of json file should it be? After looking at the source code. I found a tool in the python api of polygraphy:
from polygraphy.json import save_json
But should the inputs be saved as a list or a dictionary? I’ve tried both but polygraphy gave both errors.