Body: <p>I converted an effdet model trained on custom dataset from tensorflow to onnx and tried to further convert it to tensorrt engine file. However, while doing so, I got uint8 issue (<a href="https://docs.nvidia.com/deeplearning/tensorrt/api/python_api/infer/FoundationalTypes/DataType.html" rel="nofollow noreferrer">tensorrt does not support it</a>). So, I thought of checking out the onnx file using <a href="https://netron.app" rel="nofollow noreferrer">netron.app</a>. I see that the <code>input_tensor</code> data type is <code>uint8</code> that explains this error but I also see that it is not connected to anything and I can still do inference using this onnx file. As per my understanding, the <code>input_tensor</code> should be connected to any other node to perform further calculations. Please correct me if I am wrong.</p>
  <p>I can share the onnx file if required.
  Any idea what is happening here? Below is a screenshot from the netron app.</p>
  <p><a href="https://i.sstatic.net/BXuYU.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BXuYU.png" alt="enter image description here" /></a></p>
  <p>Thanks in advance!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-03-30T20:12:26.540Z
Comments.Text: Are you sure there isn't a non compliant implementation that assumes the unconnected input tensor to be Connected anyway?
Comments.UserDisplayName: CoffeDeveloper
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-04-01T14:54:40.510Z
Comments.Text: @CoffeDeveloper No idea about that honestly. Any pointers on how to find that out?
  I used this command to convert the model from tf to onnx
  `python3 -m tf2onnx.convert --saved-model /path/to/saved_model --output /path/to/save/onnx --opset 12`
Comments.UserDisplayName: you_know_who
Tags: <deep-neural-networks>
Title: input_tensor is not connected to anything in onnx but can still do inference. How?
UserDisplayName: you_know_who
ThreadText: # input_tensor is not connected to anything in onnx but can still do inference. How?
  
  (Asked by: username_0 on 2024-03-28)
  
  I converted an effdet model trained on custom dataset from tensorflow to onnx and tried to further convert it to tensorrt engine file. However, while doing so, I got uint8 issue ([tensorrt does not support it](https://docs.nvidia.com/deeplearning/tensorrt/api/python_api/infer/FoundationalTypes/DataType.html)). So, I thought of checking out the onnx file using [netron.app](https://netron.app). I see that the `input_tensor` data type is `uint8` that explains this error but I also see that it is not connected to anything and I can still do inference using this onnx file. As per my understanding, the `input_tensor` should be connected to any other node to perform further calculations. Please correct me if I am wrong.
  
  I can share the onnx file if required.
  Any idea what is happening here? Below is a screenshot from the netron app.
  
  [![enter image description here](https://i.sstatic.net/BXuYU.png)](https://i.sstatic.net/BXuYU.png)
  
  Thanks in advance!
  
  **Tags:** deep-neural-networks
  > **Comments:**
  > **username_1**: Are you sure there isn't a non compliant implementation that assumes the unconnected input tensor to be Connected anyway?  
  > **username_0**: @CoffeDeveloper No idea about that honestly. Any pointers on how to find that out? I used this command to convert the model from tf to onnx `python3 -m tf2onnx.convert --saved-model /path/to/saved_model --output /path/to/save/onnx --opset 12`  
  
  ---
  
  ## 0 answers
  
  