summaryrefslogtreecommitdiff
path: root/compiler/circle-inspect/README.md
blob: 94eea7b080f352f6ba00ac08fcee23148ff26a51 (plain)
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
# circle-inspect

_circle-inspect_ allows users to retrieve various information from a Circle model file

## Information to inspect

Operators with `--operators`
- show operator codes one line at a time in execution order

Example
```
$ circle-inspect --operators model.circle
```

Result
```
RESHAPE
DEPTHWISE_CONV_2D
ADD
```

To get the count of specific operator, use other tools like sort, uniq, etc.

Operators with `--tensor_dtype`
- show name and dtype of each tensor one line at a time

Example
```
$ circle-inspect --tensor_dtype quantized_conv2d.circle
```

Result
```
ifm UINT8
weights UINT8
bias INT32
ofm UINT8
```