You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The layers used in the dataDim_t struct is naturally 5 dimensional. NetworkRT reduces them to 3 by filling dimensions in with a 1. Eg 1x224x224x3x1. However, calling getBindingDimensions on a layer will return a struct that pads it with zeros, due to a quirk of a TensorRT call. dataDim_t has a method that will return the total number of elements in it, but if a dimension is zero, this total is always zero. So all 2D layers look empty.
I'm submitted a pull request so the dataDim_t struct can be initialized in a way to correct these zeros into ones.
The text was updated successfully, but these errors were encountered:
The layers used in the dataDim_t struct is naturally 5 dimensional. NetworkRT reduces them to 3 by filling dimensions in with a 1. Eg 1x224x224x3x1. However, calling getBindingDimensions on a layer will return a struct that pads it with zeros, due to a quirk of a TensorRT call. dataDim_t has a method that will return the total number of elements in it, but if a dimension is zero, this total is always zero. So all 2D layers look empty.
I'm submitted a pull request so the dataDim_t struct can be initialized in a way to correct these zeros into ones.
The text was updated successfully, but these errors were encountered: