Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / res / TensorFlowLiteRecipes / If_001 / test.recipe
1 version: 1
2
3 graph {
4   operand {
5     name: "ifm1"
6     type: FLOAT32
7     shape { dim: 2 dim: 3 }
8   }
9   operand {
10     name: "ifm2"
11     type: FLOAT32
12     shape { dim: 2 dim: 3 }
13   }
14   operand {
15     name: "ifm3"
16     type: FLOAT32
17     shape { dim: 2 dim: 3 }
18   }
19   operand {
20     name: "ofm"
21     type: FLOAT32
22     shape { dim: 2 dim: 3 }
23   }
24   operation {
25     type: "Add"
26     input: "ifm1"
27     input: "ifm2"
28     output: "ofm"
29     add_options {
30       activation: NONE
31     }
32   }
33   input: "ifm1"
34   input: "ifm2"
35   input: "ifm3"
36   output: "ofm"
37   name: "IF_ELSE"
38 }
39
40 graph {
41   operand {
42     name: "ifm1"
43     type: FLOAT32
44     shape { dim: 2 dim: 3 }
45   }
46   operand {
47     name: "ifm2"
48     type: FLOAT32
49     shape { dim: 2 dim: 3 }
50   }
51   operand {
52     name: "ifm3"
53     type: FLOAT32
54     shape { dim: 2 dim: 3 }
55   }
56   operand {
57     name: "ofm"
58     type: FLOAT32
59     shape { dim: 2 dim: 3 }
60   }
61   operation {
62     type: "Mul"
63     input: "ifm1"
64     input: "ifm3"
65     output: "ofm"
66     mul_options {
67       activation: NONE
68     }
69   }
70   input: "ifm1"
71   input: "ifm2"
72   input: "ifm3"
73   output: "ofm"
74   name: "IF_THEN"
75 }
76
77 operand {
78   name: "ifmb"
79   type: BOOL
80   shape { }
81 }
82 operand {
83   name: "ifm1"
84   type: FLOAT32
85   shape { dim: 2 dim: 3 }
86 }
87 operand {
88   name: "ifm2"
89   type: FLOAT32
90   shape { dim: 2 dim: 3 }
91 }
92 operand {
93   name: "ifm3"
94   type: FLOAT32
95   shape { dim: 2 dim: 3 }
96 }
97 operand {
98   name: "ofm"
99   type: FLOAT32
100   shape { dim: 2 dim: 3 }
101 }
102 operation {
103   type: "If"
104   input: "ifmb"
105   input: "ifm1"
106   input: "ifm2"
107   input: "ifm3"
108   output: "ofm"
109   if_options {
110     then_subgraph_index: 2
111     else_subgraph_index: 1
112   }
113 }
114 input: "ifmb"
115 input: "ifm1"
116 input: "ifm2"
117 input: "ifm3"
118 output: "ofm"
119 name: "Main"