Forums - snpe-net-run input as tensor data type

1 post / 0 new
snpe-net-run input as tensor data type
jayakumar.r
Join Date: 28 Oct 19
Posts: 2
Posted: Mon, 2020-02-03 05:03

Hi,

I am trying to use a pytorch model on SNPE. I converted pytorch to ONNX and then to DLC. I need to validate my model on DLC format, I used snpe-net-run with tensor data as input. But I am getting following error:

 

size of input file should be divisible by sizeof(dtype)

Error: invaild input size provided. please check all raw sizes.

I converted ONNX to DLC using following command:

 

snpe-onnx-to-dlc --nput_network ffn.onnx --output_path ff.dlc --input_type "data1" opaque

Please help to solve this issue?

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.