We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcc406 commit 1a572f7Copy full SHA for 1a572f7
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
+ unsigned char 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