The ImageTensorGenerator

The ImageTensorGenerator is a program for generating a .raw tensor file from a .jpg image.

Cmd:
-h--helpDisplay help messages
-i--infileInput image file to generate tensor from
-l--layoutOutput data layout, "NHWC" or "NCHW". Default value: NHWC
-o--outfileOutput raw tensor file path

Example usage:
./ImageTensorGenerator -i /path/to/image/dog.jpg -l NHWC -o /output/path/dog.raw