MCPcopy Index your code
hub / github.com/apache/tvm / decode

Method decode

python/tvm/relax/frontend/tflite/tflite_flexbuffer.py:148–161  ·  view source on GitHub ↗

Decode the buffer. Decoding is partially implemented

(self)

Source from the content-addressed store, hash-verified

146 return dict(zip(keys, values))
147
148 def decode(self):
149 """Decode the buffer. Decoding is partially implemented"""
150 root_end = len(self.buffer) - 1
151 root_byte_width = self.buffer[root_end]
152 root_end -= 1
153 root_packed_type = self.buffer[root_end]
154 root_end -= root_byte_width
155
156 root_type = FlexBufferType(root_packed_type >> 2)
157 byte_width = 1 << BitWidth(root_packed_type & 3)
158
159 if root_type == FlexBufferType.FBT_MAP:
160 return self.decode_map(root_end, byte_width, root_byte_width)
161 raise NotImplementedError("Flexbuffer Decoding is partially imlpemented.")

Callers 15

toolchain_versionFunction · 0.45
__init__Method · 0.45
execMethod · 0.45
_impl_v11Method · 0.45
_get_onnx_reductionFunction · 0.45
_impl_v20Method · 0.45
_impl_v11Method · 0.45
_impl_v1Method · 0.45
_impl_v2Method · 0.45
_impl_v11Method · 0.45
_impl_v18Method · 0.45
_impl_v12Method · 0.45

Calls 3

decode_mapMethod · 0.95
FlexBufferTypeClass · 0.85
BitWidthClass · 0.85

Tested by

no test coverage detected