-
Notifications
You must be signed in to change notification settings - Fork 74k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analyzer: Dump tensors of each subgraph
It makes analyzer output more useful. example) Your TFLite model has ‘1’ subgraph(s). In the subgraph description below, T# represents the Tensor numbers. For example, in Subgraph#0, the RESHAPE op takes tensor #0 and tensor #1 as input and produces tensor #5 as output. Subgraph#0 main(T#0) -> [T#9] Op#0 RESHAPE(T#0, T#1) -> [T#5] Op#1 STRIDED_SLICE(T#5, T#2, T#2, T#3) -> [T#6] Op#2 RESIZE_BILINEAR(T#6, T#4) -> [T#7] Op#3 RESIZE_BILINEAR(T#6, T#4) -> [T#8] Op#4 ADD(T#7, T#8) -> [T#9] Tensors of Subgraph#0 T#0(image) shape:[5, 5], type:FLOAT32 T#1(strided_slice) shape:[4], type:INT32 T#2(strided_slice1) shape:[4], type:INT32 T#3(strided_slice2) shape:[4], type:INT32 T#4(ResizeBilinear/size) shape:[2], type:INT32 T#5(strided_slice3) shape:[1, 5, 1, 5], type:FLOAT32 T#6(strided_slice4) shape:[1, 5, 5, 1], type:FLOAT32 T#7(ResizeBilinear) shape:[1, 2, 2, 1], type:FLOAT32 T#8(ResizeBilinear_1) shape:[1, 2, 2, 1], type:FLOAT32 T#9(Identity) shape:[1, 2, 2, 1], type:FLOAT32 PiperOrigin-RevId: 389795468 Change-Id: I0fda5bb74568c68459359a8a39f1627b459b7a4b
- Loading branch information
1 parent
99f2eb7
commit a1d81c8
Showing
1 changed file
with
55 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters