Hi all, I want to know how to use the --loadInputs=spec option in trtexec
It’s description as per the trtexec --help is as below
–loadInputs=spec Load input values from files (default = generate random inputs). Input names can be wrapped with single quotes (ex: ‘Input:0’)
Input values spec ::= Ival[",“spec]
Ival ::= name”:"file
Are these inputs are the filenames with extension .jpg, jpeg etc?
I have following clarifications
- I am not clear about what is mean by Input names can be wrapped with single quotes (ex: ‘Input:0’)
2 Want to have more clarifications about
Input values spec ::= Ival[",“spec]
Ival ::= name”:“file
What is mean by
spec::=lval[”,“spec] and what is mean by Ival ::= name”:"file - Does it mean that we can mention either only one file name or more than one file name
- Suppose I have an image to infer of shape [1, 28, 28]. For this do I need to first store a tensor of this shape into a file and then mention the file name. What if I have more than one images to be inferred, in that case do I need to store them in sequence?
- What should be the extension of the filename
- Suppose I have 10 images to infer. How should I specify on the command line that there are 10 images to be inferred
- Are these file names are the image filenames? like .jpg .jpeg etc
Please clarify all these doubts considering one (practical) example.
Thanks and Regards
Nagaraj Trivedi