fix: import error in TrtTable::Dict method (#8940)

This commit is contained in:
senysenyseny16 2021-09-07 14:28:49 +07:00 committed by GitHub
parent 5d47b2e431
commit 3be96f8a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ class TrtTable(object):
x = self._tab.Vector(o)
x += flatbuffers.number_types.UOffsetTFlags.py_type(j) * 4
x = self._tab.Indirect(x)
from CalTableFlatBuffers.KeyValue import KeyValue
from onnxruntime.quantization.CalTableFlatBuffers.KeyValue import KeyValue
obj = KeyValue()
obj.Init(self._tab.Bytes, x)
return obj