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

Method decode

source/dlc-schema.js:35–42  ·  view source on GitHub ↗
(reader, position)

Source from the content-addressed store, hash-verified

33dlc.v3.Tensor = class Tensor {
34
35 static decode(reader, position) {
36 const $ = new dlc.v3.Tensor();
37 $.name = reader.string_(position, 4, null);
38 $.shape = reader.array(position, 6, Int32Array);
39 $.data = reader.table(position, 8, dlc.v3.TensorData);
40 $.attributes = reader.tables(position, 10, dlc.v3.Attribute);
41 return $;
42 }
43};
44
45dlc.v3.TensorData = class TensorData {

Callers

nothing calls this directly

Calls 7

string_Method · 0.80
tablesMethod · 0.80
uint32_Method · 0.80
int32_Method · 0.80
uint8_Method · 0.80
arrayMethod · 0.45
tableMethod · 0.45

Tested by

no test coverage detected