We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2bcc406 + 580559c commit 81e1683Copy full SHA for 81e1683
foxi/onnxifi.h
@@ -863,6 +863,22 @@ typedef struct onnxTensorDescriptorV1 {
863
* For a scalar, this pointer can be NULL.
864
*/
865
const uint64_t* shape;
866
+ /**
867
+ * A flag indicates whether this tensor is a quantized tensor or not.
868
+ * If it is a quantized tensor, the value should be set to 1.
869
+ * By default it should be set to 0.
870
+ */
871
+ uint8_t is_quantized;
872
873
+ * Quantized tensor scale info.
874
+ * For non-quantized tensor, this scale is not valid.
875
876
+ float scale;
877
878
+ * Quantized tensor bias info.
879
+ * For non-quantized tensor, this bias is not valid.
880
881
+ int32_t bias;
882
/**
883
* Pointers to tensor data.
884
*
0 commit comments