Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.

Commit c8d3722

Browse files
committed
Support for INT8 inverse quantization of multiple operations
1 parent 8befbc6 commit c8d3722

File tree

4 files changed

+255
-20
lines changed

4 files changed

+255
-20
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG CPVER=cp38
77
ARG OPENVINOVER=2021.4.582
88
ARG OPENVINOROOTDIR=/opt/intel/openvino_2021
99
ARG TENSORRTVER=cuda11.3-trt8.0.1.6-ga-20210626
10-
ARG APPVER=v1.11.2
10+
ARG APPVER=v1.11.3
1111
ARG wkdir=/home/user
1212

1313
# dash -> bash

schema/schema.fbs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
// Version 3: Move buffer data from Model.Subgraph.Tensors to Model.Buffers.
2020
// Version 3a: Add new builtin op code field. Has backward compatibility with
2121
// version 3.
22+
// Version 3b: Rename fields in SignatureDef. Has backward compatibility with
23+
// version 3 and 3a.
2224

2325
namespace tflite;
2426

@@ -376,6 +378,8 @@ enum BuiltinOperator : int32 {
376378
VAR_HANDLE = 142,
377379
READ_VARIABLE = 143,
378380
ASSIGN_VARIABLE = 144,
381+
BROADCAST_ARGS = 145,
382+
RANDOM_STANDARD_NORMAL = 146,
379383
}
380384
// LINT.ThenChange(nnapi_linter/linter.proto)
381385

@@ -494,6 +498,7 @@ union BuiltinOptions {
494498
VarHandleOptions,
495499
ReadVariableOptions,
496500
AssignVariableOptions,
501+
RandomOptions,
497502
}
498503

499504
enum Padding : byte { SAME, VALID }
@@ -1079,6 +1084,11 @@ table ReadVariableOptions {
10791084
table AssignVariableOptions {
10801085
}
10811086

1087+
table RandomOptions {
1088+
seed: int;
1089+
seed2: int;
1090+
}
1091+
10821092
// An OperatorCode can be an enum value (BuiltinOperator) if the operator is a
10831093
// builtin, or a string if the operator is custom.
10841094
table OperatorCode {
@@ -1194,13 +1204,13 @@ table SignatureDef {
11941204
// Named outputs for this signature.
11951205
outputs:[TensorMap];
11961206

1197-
// Exported method name for this signature.
1198-
method_name:string;
1199-
12001207
// Key value which was in the Tensorflow SavedModel SignatureDef map.
1201-
key:string;
1208+
signature_key:string;
1209+
1210+
// Model tag, deprecated.
1211+
deprecated_tag:string (deprecated);
12021212

1203-
// Subgraph index of the exported method.
1213+
// Index of subgraphs that corresponds to the exported method.
12041214
subgraph_index:uint;
12051215
}
12061216

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
setup(
1212
name="tflite2tensorflow",
1313
scripts=scripts,
14-
version="1.11.2",
14+
version="1.11.3",
1515
description="Generate saved_model, tfjs, tf-trt, EdgeTPU, CoreML, quantized tflite, ONNX, OpenVINO, Myriad Inference Engine blob and .pb from .tflite.",
1616
long_description=long_description,
1717
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)