Repository navigation
Expand file tree
/
Copy pathsparse_tensor.json
More file actions
69 lines (69 loc) · 1.48 KB
/
Copy pathsparse_tensor.json
File metadata and controls
69 lines (69 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"version": 3,
"operator_codes": [{"builtin_code": "CUSTOM", "custom_code": "FakeOp"}],
"subgraphs": [
{
"tensors": [
{
"shape": [
4,
4
],
"name": "sparse_tensor",
"buffer": 1,
"type": "INT8",
"quantization": {
},
"is_variable": "false",
"sparsity": {
"traversal_order": [0, 1, 2, 3],
"block_map": [0, 1],
"dim_metadata": [
{
"format": "DENSE",
"dense_size": 2
},
{
"format": "SPARSE_CSR",
"array_segments_type": "Uint8Vector",
"array_segments": {"values": [0, 2, 3]},
"array_indices_type": "Uint8Vector",
"array_indices": {"values": [0, 1, 1]}
},
{
"format": "DENSE",
"dense_size": 2
},
{
"format": "DENSE",
"dense_size": 2
}
]
}
},
{
"shape": [
4,
4
],
"name": "output_tensor",
"type": "INT8"
}
],
"inputs": [0],
"outputs": [0],
"operators": [{"inputs":[-1], "outputs":[1]}]
}
],
"buffers": [
{
},
{
"data": [
1, 0, 0, 4,
2, 3, 0, 0,
5, 0, 0, 6
]
}
]
}