MCPcopy
hub / github.com/lutzroeder/netron / decode

Method decode

source/espdl-schema.js:187–204  ·  view source on GitHub ↗
(reader, position)

Source from the content-addressed store, hash-verified

185espdl.Tensor = class Tensor {
186
187 static decode(reader, position) {
188 const $ = new espdl.Tensor();
189 $.dims = reader.int64s_(position, 4);
190 $.data_type = reader.int32_(position, 6, 0);
191 $.float_data = reader.array(position, 8, Float32Array);
192 $.int32_data = reader.array(position, 10, Int32Array);
193 $.string_data = reader.strings_(position, 12);
194 $.int64_data = reader.int64s_(position, 14);
195 $.name = reader.string_(position, 16, null);
196 $.doc_string = reader.string_(position, 18, null);
197 $.raw_data = reader.structs(position, 20, espdl.AlignedBytes, 16);
198 $.external_data = reader.tables(position, 22, espdl.StringStringEntry);
199 $.data_location = reader.int32_(position, 24, 0);
200 $.double_data = reader.array(position, 26, Float64Array);
201 $.uint64_data = reader.uint64s_(position, 28);
202 $.exponents = reader.int64s_(position, 30);
203 return $;
204 }
205};
206
207espdl.TensorShape = class TensorShape {

Callers

nothing calls this directly

Calls 8

int64s_Method · 0.80
int32_Method · 0.80
strings_Method · 0.80
string_Method · 0.80
structsMethod · 0.80
tablesMethod · 0.80
uint64s_Method · 0.80
arrayMethod · 0.45

Tested by

no test coverage detected