glow icon indicating copy to clipboard operation
glow copied to clipboard

resnet-* example code should reuse Tensor memory for images

Open nickgg opened this issue 5 years ago • 0 comments

In #2896 a version of readPngImage was added that loads into an existing Tensor. Convert the resnet example code (resnet-verify and resnet-runtime) to use this format to limit the total number of Tensors it allocates to some fixed (configurable) number. The more complex part here is how you rate limit the example code to wait until a Tensor is available.

nickgg avatar May 13 '19 20:05 nickgg