Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / res / TensorFlowLiteRecipes / While_001 / test.recipe
1 version: 1
2
3 graph {
4   operand {
5     name: "ifm1"
6     type: INT32
7     shape { }
8   }
9   operand {
10     name: "ifm2"
11     type: INT32
12     shape { }
13     filler {
14       tag: "explicit"
15       arg: "10"
16     }
17   }
18   operand {
19     name: "ifm4"
20     type: FLOAT32
21     shape {dim: 2 dim: 3}
22   }
23   operand {
24     name: "ofm"
25     type: BOOL
26     shape { }
27   }
28   operation {
29     type: "Equal"
30     input: "ifm1"
31     input: "ifm2"
32     output: "ofm"
33   }
34   input: "ifm1"
35   input: "ifm4"
36   output: "ofm"
37   name: "WHILE_COND"
38 }
39
40 graph {
41   operand {
42     name: "ifm1"
43     type: INT32
44     shape { }
45   }
46   operand {
47     name: "ifm3"
48     type: INT32
49     shape { }
50     filler {
51       tag: "explicit"
52       arg: "1"
53     }
54   }
55   operand {
56     name: "ifm4"
57     type: FLOAT32
58     shape {dim: 2 dim: 3}
59   }
60   operand {
61     name: "ifm5"
62     type: FLOAT32
63     shape {dim: 2 dim: 3}
64     filler {
65       tag: "explicit"
66       arg: "2.0" arg: "2.0" arg: "2.0" arg: "2.0" arg: "2.0" arg: "2.0"
67     }
68   }
69   operand {
70     name: "ofm1"
71     type: INT32
72     shape { }
73   }
74   operand {
75     name: "ofm2"
76     type: FLOAT32
77     shape {dim: 2 dim: 3}
78   }
79   operation {
80     type: "Add"
81     input: "ifm1"
82     input: "ifm3"
83     output: "ofm1"
84     add_options {
85       activation: NONE
86     }
87   }
88   operation {
89     type: "Add"
90     input: "ifm4"
91     input: "ifm5"
92     output: "ofm2"
93     add_options {
94       activation: NONE
95     }
96   }
97   input: "ifm1"
98   input: "ifm4"
99   output: "ofm1"
100   output: "ofm2"
101   name: "WHILE_BODY"
102 }
103
104 operand {
105   name: "ifm1"
106   type: INT32
107   shape { }
108 }
109 operand {
110   name: "ifm4"
111   type: FLOAT32
112   shape {dim: 2 dim: 3}
113 }
114 operand {
115   name: "ofm1"
116   type: INT32
117   shape { }
118 }
119 operand {
120   name: "ofm2"
121   type: FLOAT32
122   shape {dim: 2 dim: 3}
123 }
124 operation {
125   type: "While"
126   input: "ifm1"
127   input: "ifm4"
128   output: "ofm1"
129   output: "ofm2"
130   while_options {
131     body_subgraph_index: 2
132     cond_subgraph_index: 1
133   }
134 }
135 input: "ifm1"
136 input: "ifm4"
137 output: "ofm1"
138 output: "ofm2"
139 name: "Main"